Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
- <!-- EF Runtime content -->
- <edmx:Runtime>
- <!-- SSDL content -->
- <edmx:StorageModels>
- <Schema Namespace="socialprofilesModel.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2008" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
- <EntityContainer Name="socialprofilesModelStoreContainer">
- <EntitySet Name="SPGender" EntityType="socialprofilesModel.Store.SPGender" store:Type="Tables" Schema="dbo" />
- <EntitySet Name="SPLogins" EntityType="socialprofilesModel.Store.SPLogins" store:Type="Tables" Schema="dbo" />
- <EntitySet Name="SPPhotos" EntityType="socialprofilesModel.Store.SPPhotos" store:Type="Tables" Schema="dbo" />
- <EntitySet Name="SPprofiles" EntityType="socialprofilesModel.Store.SPprofiles" store:Type="Tables" Schema="dbo" />
- <EntitySet Name="SPProfileStatus" EntityType="socialprofilesModel.Store.SPProfileStatus" store:Type="Tables" Schema="dbo" />
- <EntitySet Name="SPRelationShipStatus" EntityType="socialprofilesModel.Store.SPRelationShipStatus" store:Type="Tables" Schema="dbo" />
- <EntitySet Name="SPRoles" EntityType="socialprofilesModel.Store.SPRoles" store:Type="Tables" Schema="dbo" />
- <EntitySet Name="SPtopics" EntityType="socialprofilesModel.Store.SPtopics" store:Type="Tables" Schema="dbo" />
- <EntitySet Name="SPUsersInRoles" EntityType="socialprofilesModel.Store.SPUsersInRoles" store:Type="Tables" Schema="dbo" />
- <EntitySet Name="SPWorkPlace" EntityType="socialprofilesModel.Store.SPWorkPlace" store:Type="Tables" Schema="dbo" />
- <EntitySet Name="sysdiagrams" EntityType="socialprofilesModel.Store.sysdiagrams" store:Type="Tables" Schema="dbo" />
- <EntitySet Name="Users" EntityType="socialprofilesModel.Store.Users" store:Type="Tables" Schema="dbo" />
- <AssociationSet Name="FK_SPLogins_Users" Association="socialprofilesModel.Store.FK_SPLogins_Users">
- <End Role="Users" EntitySet="Users" />
- <End Role="SPLogins" EntitySet="SPLogins" />
- </AssociationSet>
- <AssociationSet Name="FK_SPRoles_SPRoles" Association="socialprofilesModel.Store.FK_SPRoles_SPRoles">
- <End Role="SPRoles" EntitySet="SPRoles" />
- <End Role="SPRoles1" EntitySet="SPRoles" />
- </AssociationSet>
- <AssociationSet Name="FK_SPUsersInRoles_SPRoles" Association="socialprofilesModel.Store.FK_SPUsersInRoles_SPRoles">
- <End Role="SPRoles" EntitySet="SPRoles" />
- <End Role="SPUsersInRoles" EntitySet="SPUsersInRoles" />
- </AssociationSet>
- </EntityContainer>
- <EntityType Name="SPGender">
- <Key>
- <PropertyRef Name="code" />
- </Key>
- <Property Name="code" Type="int" Nullable="false" />
- <Property Name="description" Type="nvarchar" Nullable="false" MaxLength="250" />
- </EntityType>
- <EntityType Name="SPLogins">
- <Key>
- <PropertyRef Name="UserId" />
- </Key>
- <Property Name="id" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
- <Property Name="UserId" Type="int" Nullable="false" />
- <Property Name="username" Type="nvarchar" MaxLength="50" />
- <Property Name="password" Type="nvarchar" MaxLength="50" />
- <Property Name="validfrom" Type="datetime" />
- <Property Name="validto" Type="datetime" />
- <Property Name="isLockedOut" Type="int" />
- <Property Name="created_date" Type="datetime" />
- <Property Name="updated_date" Type="datetime" />
- <Property Name="status" Type="int" />
- </EntityType>
- <EntityType Name="SPPhotos">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
- <Property Name="albumId" Type="int" Nullable="false" />
- <Property Name="caption" Type="nvarchar" Nullable="false" MaxLength="300" />
- <Property Name="date_created" Type="date" Nullable="false" />
- <Property Name="largeSource" Type="nvarchar" Nullable="false" MaxLength="255" />
- <Property Name="link" Type="nvarchar" Nullable="false" MaxLength="255" />
- <Property Name="mediumSource" Type="nvarchar" Nullable="false" MaxLength="255" />
- <Property Name="owner" Type="int" Nullable="false" />
- <Property Name="photoId" Type="int" Nullable="false" />
- <Property Name="smallSource" Type="nvarchar" Nullable="false" MaxLength="255" />
- </EntityType>
- <EntityType Name="SPprofiles">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
- <Property Name="mapping_id" Type="int" />
- <Property Name="brithday" Type="date" />
- <Property Name="description" Type="nvarchar(max)" />
- <Property Name="alter_name" Type="nvarchar" MaxLength="250" />
- <Property Name="cover_photo" Type="int" />
- <Property Name="picturebigurl" Type="varchar" MaxLength="255" />
- <Property Name="picturesmallurl" Type="nvarchar" MaxLength="255" />
- <Property Name="status" Type="nvarchar(max)" />
- <Property Name="likes" Type="int" />
- <Property Name="dislikes" Type="int" />
- <Property Name="active" Type="int" />
- <Property Name="date_created" Type="date" />
- <Property Name="created_by" Type="nvarchar" MaxLength="50" />
- <Property Name="updated_time" Type="nvarchar" MaxLength="50" />
- <Property Name="relationship_status" Type="int" />
- <Property Name="timeline_id" Type="int" />
- <Property Name="UDF_Text1" Type="nvarchar(max)" />
- <Property Name="UDF_Text2" Type="nvarchar(max)" />
- <Property Name="UDF_Boolean1" Type="bit" />
- <Property Name="UDF_Boolean2" Type="bit" />
- <Property Name="UDF_DateTime1" Type="datetime" />
- <Property Name="UDF_DateTime2" Type="date" />
- </EntityType>
- <EntityType Name="SPProfileStatus">
- <Key>
- <PropertyRef Name="code" />
- </Key>
- <Property Name="code" Type="nvarchar" Nullable="false" MaxLength="50" />
- <Property Name="description" Type="nvarchar" Nullable="false" MaxLength="50" />
- </EntityType>
- <EntityType Name="SPRelationShipStatus">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" Nullable="false" />
- <Property Name="Engaged" Type="bit" Nullable="false" />
- <Property Name="isAnOpenRelationship" Type="bit" Nullable="false" />
- <Property Name="isSingle" Type="bit" Nullable="false" />
- <Property Name="itsComplicated" Type="bit" Nullable="false" />
- <Property Name="Married" Type="nchar" Nullable="false" MaxLength="10" />
- <Property Name="OtherId" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
- </EntityType>
- <EntityType Name="SPRoles">
- <Key>
- <PropertyRef Name="RoleId" />
- </Key>
- <Property Name="RoleId" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
- <Property Name="RoleName" Type="nvarchar" Nullable="false" MaxLength="256" />
- <Property Name="LoweredRoleName" Type="nvarchar" Nullable="false" MaxLength="256" />
- <Property Name="Description" Type="nvarchar" Nullable="false" MaxLength="256" />
- </EntityType>
- <EntityType Name="SPtopics">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
- <Property Name="type" Type="int" Nullable="false" />
- <Property Name="topics_content" Type="nvarchar(max)" Nullable="false" />
- <Property Name="short_description" Type="nvarchar" Nullable="false" MaxLength="500" />
- <Property Name="created_by" Type="nvarchar" Nullable="false" MaxLength="50" />
- <Property Name="user_id" Type="int" Nullable="false" />
- <Property Name="date_created" Type="datetime" Nullable="false" />
- <Property Name="active" Type="int" Nullable="false" />
- <Property Name="version" Type="int" Nullable="false" />
- <Property Name="status" Type="int" Nullable="false" />
- <Property Name="relationship_status" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="SPUsersInRoles">
- <Key>
- <PropertyRef Name="UserId" />
- <PropertyRef Name="RoleId" />
- </Key>
- <Property Name="UserId" Type="int" Nullable="false" />
- <Property Name="RoleId" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="SPWorkPlace">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
- <Property Name="companyName" Type="int" Nullable="false" />
- <Property Name="description" Type="nvarchar(max)" Nullable="false" />
- <Property Name="endDate" Type="datetime" Nullable="false" />
- <Property Name="startDate" Type="datetime" Nullable="false" />
- <Property Name="postion" Type="nvarchar" Nullable="false" MaxLength="50" />
- <Property Name="isCurrent" Type="bit" Nullable="false" />
- </EntityType>
- <EntityType Name="sysdiagrams">
- <Key>
- <PropertyRef Name="diagram_id" />
- </Key>
- <Property Name="name" Type="nvarchar" Nullable="false" MaxLength="128" />
- <Property Name="principal_id" Type="int" Nullable="false" />
- <Property Name="diagram_id" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
- <Property Name="version" Type="int" />
- <Property Name="definition" Type="varbinary(max)" />
- </EntityType>
- <EntityType Name="Users">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
- <Property Name="mapping_id" Type="int" />
- <Property Name="firstname" Type="nvarchar" MaxLength="50" />
- <Property Name="address1" Type="nvarchar" MaxLength="50" />
- <Property Name="address2" Type="nvarchar" MaxLength="50" />
- <Property Name="lastname" Type="nvarchar" MaxLength="50" />
- <Property Name="county" Type="nvarchar" MaxLength="30" />
- <Property Name="town" Type="nvarchar" MaxLength="50" />
- <Property Name="postcode" Type="nvarchar" MaxLength="12" />
- <Property Name="ipaddress" Type="nvarchar" MaxLength="50" />
- <Property Name="phone" Type="nvarchar" MaxLength="50" />
- <Property Name="registrationdate" Type="datetime" />
- <Property Name="email" Type="nvarchar" MaxLength="255" />
- <Property Name="emailVerificationCode" Type="nvarchar" MaxLength="50" />
- <Property Name="failedLoginAttemps" Type="int" />
- <Property Name="isLockedOut" Type="bit" />
- <Property Name="status" Type="int" />
- </EntityType>
- <Association Name="FK_SPLogins_Users">
- <End Role="Users" Type="socialprofilesModel.Store.Users" Multiplicity="1" />
- <End Role="SPLogins" Type="socialprofilesModel.Store.SPLogins" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="Users">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="SPLogins">
- <PropertyRef Name="UserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_SPRoles_SPRoles">
- <End Role="SPRoles" Type="socialprofilesModel.Store.SPRoles" Multiplicity="1" />
- <End Role="SPRoles1" Type="socialprofilesModel.Store.SPRoles" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="SPRoles">
- <PropertyRef Name="RoleId" />
- </Principal>
- <Dependent Role="SPRoles1">
- <PropertyRef Name="RoleId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_SPUsersInRoles_SPRoles">
- <End Role="SPRoles" Type="socialprofilesModel.Store.SPRoles" Multiplicity="1" />
- <End Role="SPUsersInRoles" Type="socialprofilesModel.Store.SPUsersInRoles" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="SPRoles">
- <PropertyRef Name="RoleId" />
- </Principal>
- <Dependent Role="SPUsersInRoles">
- <PropertyRef Name="RoleId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- </Schema></edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <Schema Namespace="socialprofilesModel" Alias="Self" p1:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:p1="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
- <EntityContainer Name="socialprofilesEntities" p1:LazyLoadingEnabled="true">
- <EntitySet Name="SPGenders" EntityType="socialprofilesModel.SPGender" />
- <EntitySet Name="SPPhotos" EntityType="socialprofilesModel.SPPhoto" />
- <EntitySet Name="UserProfiles" EntityType="socialprofilesModel.UserProfile" />
- <EntitySet Name="SPProfileStatus" EntityType="socialprofilesModel.SPProfileStatu" />
- <EntitySet Name="SPRelationShipStatus" EntityType="socialprofilesModel.SPRelationShipStatu" />
- <EntitySet Name="SPRoles" EntityType="socialprofilesModel.SPRole" />
- <EntitySet Name="SPtopics" EntityType="socialprofilesModel.SPtopic" />
- <EntitySet Name="SPUsersInRoles" EntityType="socialprofilesModel.SPUsersInRole" />
- <EntitySet Name="SPWorkPlaces" EntityType="socialprofilesModel.SPWorkPlace" />
- <EntitySet Name="sysdiagrams" EntityType="socialprofilesModel.sysdiagram" />
- <AssociationSet Name="FK_SPRoles_SPRoles" Association="socialprofilesModel.FK_SPRoles_SPRoles">
- <End Role="SPRole" EntitySet="SPRoles" />
- <End Role="SPRole1" EntitySet="SPRoles" />
- </AssociationSet>
- <AssociationSet Name="FK_SPUsersInRoles_SPRoles" Association="socialprofilesModel.FK_SPUsersInRoles_SPRoles">
- <End Role="SPRole" EntitySet="SPRoles" />
- <End Role="SPUsersInRole" EntitySet="SPUsersInRoles" />
- </AssociationSet>
- <EntitySet Name="SPLogins" EntityType="socialprofilesModel.SPLogin" />
- <EntitySet Name="Users" EntityType="socialprofilesModel.User" />
- <AssociationSet Name="FK_SPLogins_Users" Association="socialprofilesModel.FK_SPLogins_Users">
- <End Role="User" EntitySet="Users" />
- <End Role="SPLogin" EntitySet="SPLogins" />
- </AssociationSet>
- </EntityContainer>
- <EntityType Name="SPGender">
- <Key>
- <PropertyRef Name="code" />
- </Key>
- <Property Type="Int32" Name="code" Nullable="false" />
- <Property Type="String" Name="description" Nullable="false" MaxLength="250" FixedLength="false" Unicode="true" />
- </EntityType>
- <EntityType Name="SPPhoto">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Type="Int32" Name="id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Type="Int32" Name="albumId" Nullable="false" />
- <Property Type="String" Name="caption" Nullable="false" MaxLength="300" FixedLength="false" Unicode="true" />
- <Property Type="DateTime" Name="date_created" Nullable="false" Precision="0" />
- <Property Type="String" Name="largeSource" Nullable="false" MaxLength="255" FixedLength="false" Unicode="true" />
- <Property Type="String" Name="link" Nullable="false" MaxLength="255" FixedLength="false" Unicode="true" />
- <Property Type="String" Name="mediumSource" Nullable="false" MaxLength="255" FixedLength="false" Unicode="true" />
- <Property Type="Int32" Name="owner" Nullable="false" />
- <Property Type="Int32" Name="photoId" Nullable="false" />
- <Property Type="String" Name="smallSource" Nullable="false" MaxLength="255" FixedLength="false" Unicode="true" />
- </EntityType>
- <EntityType Name="UserProfile">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Type="Int32" Name="id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Type="Int32" Name="mapping_id" />
- <Property Type="DateTime" Name="brithday" Precision="0" />
- <Property Type="String" Name="description" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Type="String" Name="alter_name" MaxLength="250" FixedLength="false" Unicode="true" />
- <Property Type="Int32" Name="cover_photo" />
- <Property Type="String" Name="picturebigurl" MaxLength="255" FixedLength="false" Unicode="false" />
- <Property Type="String" Name="picturesmallurl" MaxLength="255" FixedLength="false" Unicode="true" />
- <Property Type="String" Name="status" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Type="Int32" Name="likes" />
- <Property Type="Int32" Name="dislikes" />
- <Property Type="Int32" Name="active" />
- <Property Type="DateTime" Name="date_created" Precision="0" />
- <Property Type="String" Name="created_by" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Type="String" Name="updated_time" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Type="Int32" Name="relationship_status" />
- <Property Type="Int32" Name="timeline_id" />
- <Property Type="String" Name="UDF_Text1" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Type="String" Name="UDF_Text2" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Type="Boolean" Name="UDF_Boolean1" />
- <Property Type="Boolean" Name="UDF_Boolean2" />
- <Property Type="DateTime" Name="UDF_DateTime1" Precision="3" />
- <Property Type="DateTime" Name="UDF_DateTime2" Precision="0" />
- </EntityType>
- <EntityType Name="SPProfileStatu">
- <Key>
- <PropertyRef Name="code" />
- </Key>
- <Property Type="String" Name="code" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Type="String" Name="description" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- </EntityType>
- <EntityType Name="SPRelationShipStatu">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Type="Int32" Name="id" Nullable="false" />
- <Property Type="Boolean" Name="Engaged" Nullable="false" />
- <Property Type="Boolean" Name="isAnOpenRelationship" Nullable="false" />
- <Property Type="Boolean" Name="isSingle" Nullable="false" />
- <Property Type="Boolean" Name="itsComplicated" Nullable="false" />
- <Property Type="String" Name="Married" Nullable="false" MaxLength="10" FixedLength="true" Unicode="true" />
- <Property Type="Int32" Name="OtherId" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- </EntityType>
- <EntityType Name="SPRole">
- <Key>
- <PropertyRef Name="RoleId" />
- </Key>
- <Property Type="Int32" Name="RoleId" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Type="String" Name="RoleName" Nullable="false" MaxLength="256" FixedLength="false" Unicode="true" />
- <Property Type="String" Name="LoweredRoleName" Nullable="false" MaxLength="256" FixedLength="false" Unicode="true" />
- <Property Type="String" Name="Description" Nullable="false" MaxLength="256" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="SPRoles1" Relationship="socialprofilesModel.FK_SPRoles_SPRoles" FromRole="SPRole" ToRole="SPRole1" />
- <NavigationProperty Name="SPRole1" Relationship="socialprofilesModel.FK_SPRoles_SPRoles" FromRole="SPRole1" ToRole="SPRole" />
- <NavigationProperty Name="SPUsersInRoles" Relationship="socialprofilesModel.FK_SPUsersInRoles_SPRoles" FromRole="SPRole" ToRole="SPUsersInRole" />
- </EntityType>
- <EntityType Name="SPtopic">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Type="Int32" Name="id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Type="Int32" Name="type" Nullable="false" />
- <Property Type="String" Name="topics_content" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Type="String" Name="short_description" Nullable="false" MaxLength="500" FixedLength="false" Unicode="true" />
- <Property Type="String" Name="created_by" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Type="Int32" Name="user_id" Nullable="false" />
- <Property Type="DateTime" Name="date_created" Nullable="false" Precision="3" />
- <Property Type="Int32" Name="active" Nullable="false" />
- <Property Type="Int32" Name="version" Nullable="false" />
- <Property Type="Int32" Name="status" Nullable="false" />
- <Property Type="Int32" Name="relationship_status" Nullable="false" />
- </EntityType>
- <EntityType Name="SPUsersInRole">
- <Key>
- <PropertyRef Name="UserId" />
- <PropertyRef Name="RoleId" />
- </Key>
- <Property Type="Int32" Name="UserId" Nullable="false" />
- <Property Type="Int32" Name="RoleId" Nullable="false" />
- <NavigationProperty Name="SPRole" Relationship="socialprofilesModel.FK_SPUsersInRoles_SPRoles" FromRole="SPUsersInRole" ToRole="SPRole" />
- </EntityType>
- <EntityType Name="SPWorkPlace">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Type="Int32" Name="id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Type="Int32" Name="companyName" Nullable="false" />
- <Property Type="String" Name="description" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Type="DateTime" Name="endDate" Nullable="false" Precision="3" />
- <Property Type="DateTime" Name="startDate" Nullable="false" Precision="3" />
- <Property Type="String" Name="postion" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Type="Boolean" Name="isCurrent" Nullable="false" />
- </EntityType>
- <EntityType Name="sysdiagram">
- <Key>
- <PropertyRef Name="diagram_id" />
- </Key>
- <Property Type="String" Name="name" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
- <Property Type="Int32" Name="principal_id" Nullable="false" />
- <Property Type="Int32" Name="diagram_id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Type="Int32" Name="version" />
- <Property Type="Binary" Name="definition" MaxLength="Max" FixedLength="false" />
- </EntityType>
- <Association Name="FK_SPRoles_SPRoles">
- <End Type="socialprofilesModel.SPRole" Role="SPRole" Multiplicity="1" />
- <End Type="socialprofilesModel.SPRole" Role="SPRole1" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="SPRole">
- <PropertyRef Name="RoleId" />
- </Principal>
- <Dependent Role="SPRole1">
- <PropertyRef Name="RoleId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_SPUsersInRoles_SPRoles">
- <End Type="socialprofilesModel.SPRole" Role="SPRole" Multiplicity="1" />
- <End Type="socialprofilesModel.SPUsersInRole" Role="SPUsersInRole" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="SPRole">
- <PropertyRef Name="RoleId" />
- </Principal>
- <Dependent Role="SPUsersInRole">
- <PropertyRef Name="RoleId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityType Name="SPLogin">
- <Key>
- <PropertyRef Name="UserId" />
- </Key>
- <Property Type="Int32" Name="id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Type="Int32" Name="UserId" Nullable="false" />
- <Property Type="String" Name="username" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Type="String" Name="password" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Type="DateTime" Name="validfrom" Precision="3" />
- <Property Type="DateTime" Name="validto" Precision="3" />
- <Property Type="Int32" Name="isLockedOut" />
- <Property Type="DateTime" Name="created_date" Precision="3" />
- <Property Type="DateTime" Name="updated_date" Precision="3" />
- <Property Type="Int32" Name="status" />
- <NavigationProperty Name="User" Relationship="socialprofilesModel.FK_SPLogins_Users" FromRole="SPLogin" ToRole="User" />
- </EntityType>
- <EntityType Name="User">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Type="Int32" Name="id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Type="Int32" Name="mapping_id" />
- <Property Type="String" Name="firstname" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Type="String" Name="address1" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Type="String" Name="address2" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Type="String" Name="lastname" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Type="String" Name="county" MaxLength="30" FixedLength="false" Unicode="true" />
- <Property Type="String" Name="town" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Type="String" Name="postcode" MaxLength="12" FixedLength="false" Unicode="true" />
- <Property Type="String" Name="ipaddress" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Type="String" Name="phone" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Type="DateTime" Name="registrationdate" Precision="3" />
- <Property Type="String" Name="email" MaxLength="255" FixedLength="false" Unicode="true" />
- <Property Type="String" Name="emailVerificationCode" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Type="Int32" Name="failedLoginAttemps" />
- <Property Type="Boolean" Name="isLockedOut" />
- <Property Type="Int32" Name="status" />
- <NavigationProperty Name="SPLogin" Relationship="socialprofilesModel.FK_SPLogins_Users" FromRole="User" ToRole="SPLogin" />
- </EntityType>
- <Association Name="FK_SPLogins_Users">
- <End Type="socialprofilesModel.User" Role="User" Multiplicity="1" />
- <End Type="socialprofilesModel.SPLogin" Role="SPLogin" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="User">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="SPLogin">
- <PropertyRef Name="UserId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- </Schema>
- </edmx:ConceptualModels>
- <!-- C-S mapping content -->
- <edmx:Mappings>
- <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
- <EntityContainerMapping StorageEntityContainer="socialprofilesModelStoreContainer" CdmEntityContainer="socialprofilesEntities">
- <EntitySetMapping Name="SPGenders">
- <EntityTypeMapping TypeName="socialprofilesModel.SPGender">
- <MappingFragment StoreEntitySet="SPGender">
- <ScalarProperty Name="description" ColumnName="description" />
- <ScalarProperty Name="code" ColumnName="code" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="SPPhotos">
- <EntityTypeMapping TypeName="socialprofilesModel.SPPhoto">
- <MappingFragment StoreEntitySet="SPPhotos">
- <ScalarProperty Name="smallSource" ColumnName="smallSource" />
- <ScalarProperty Name="photoId" ColumnName="photoId" />
- <ScalarProperty Name="owner" ColumnName="owner" />
- <ScalarProperty Name="mediumSource" ColumnName="mediumSource" />
- <ScalarProperty Name="link" ColumnName="link" />
- <ScalarProperty Name="largeSource" ColumnName="largeSource" />
- <ScalarProperty Name="date_created" ColumnName="date_created" />
- <ScalarProperty Name="caption" ColumnName="caption" />
- <ScalarProperty Name="albumId" ColumnName="albumId" />
- <ScalarProperty Name="id" ColumnName="id" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="UserProfiles">
- <EntityTypeMapping TypeName="socialprofilesModel.UserProfile">
- <MappingFragment StoreEntitySet="SPprofiles">
- <ScalarProperty Name="UDF_DateTime2" ColumnName="UDF_DateTime2" />
- <ScalarProperty Name="UDF_DateTime1" ColumnName="UDF_DateTime1" />
- <ScalarProperty Name="UDF_Boolean2" ColumnName="UDF_Boolean2" />
- <ScalarProperty Name="UDF_Boolean1" ColumnName="UDF_Boolean1" />
- <ScalarProperty Name="UDF_Text2" ColumnName="UDF_Text2" />
- <ScalarProperty Name="UDF_Text1" ColumnName="UDF_Text1" />
- <ScalarProperty Name="timeline_id" ColumnName="timeline_id" />
- <ScalarProperty Name="relationship_status" ColumnName="relationship_status" />
- <ScalarProperty Name="updated_time" ColumnName="updated_time" />
- <ScalarProperty Name="created_by" ColumnName="created_by" />
- <ScalarProperty Name="date_created" ColumnName="date_created" />
- <ScalarProperty Name="active" ColumnName="active" />
- <ScalarProperty Name="dislikes" ColumnName="dislikes" />
- <ScalarProperty Name="likes" ColumnName="likes" />
- <ScalarProperty Name="status" ColumnName="status" />
- <ScalarProperty Name="picturesmallurl" ColumnName="picturesmallurl" />
- <ScalarProperty Name="picturebigurl" ColumnName="picturebigurl" />
- <ScalarProperty Name="cover_photo" ColumnName="cover_photo" />
- <ScalarProperty Name="alter_name" ColumnName="alter_name" />
- <ScalarProperty Name="description" ColumnName="description" />
- <ScalarProperty Name="brithday" ColumnName="brithday" />
- <ScalarProperty Name="mapping_id" ColumnName="mapping_id" />
- <ScalarProperty Name="id" ColumnName="id" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="SPProfileStatus">
- <EntityTypeMapping TypeName="socialprofilesModel.SPProfileStatu">
- <MappingFragment StoreEntitySet="SPProfileStatus">
- <ScalarProperty Name="description" ColumnName="description" />
- <ScalarProperty Name="code" ColumnName="code" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="SPRelationShipStatus">
- <EntityTypeMapping TypeName="socialprofilesModel.SPRelationShipStatu">
- <MappingFragment StoreEntitySet="SPRelationShipStatus">
- <ScalarProperty Name="OtherId" ColumnName="OtherId" />
- <ScalarProperty Name="Married" ColumnName="Married" />
- <ScalarProperty Name="itsComplicated" ColumnName="itsComplicated" />
- <ScalarProperty Name="isSingle" ColumnName="isSingle" />
- <ScalarProperty Name="isAnOpenRelationship" ColumnName="isAnOpenRelationship" />
- <ScalarProperty Name="Engaged" ColumnName="Engaged" />
- <ScalarProperty Name="id" ColumnName="id" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="SPRoles">
- <EntityTypeMapping TypeName="socialprofilesModel.SPRole">
- <MappingFragment StoreEntitySet="SPRoles">
- <ScalarProperty Name="Description" ColumnName="Description" />
- <ScalarProperty Name="LoweredRoleName" ColumnName="LoweredRoleName" />
- <ScalarProperty Name="RoleName" ColumnName="RoleName" />
- <ScalarProperty Name="RoleId" ColumnName="RoleId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="SPtopics">
- <EntityTypeMapping TypeName="socialprofilesModel.SPtopic">
- <MappingFragment StoreEntitySet="SPtopics">
- <ScalarProperty Name="relationship_status" ColumnName="relationship_status" />
- <ScalarProperty Name="status" ColumnName="status" />
- <ScalarProperty Name="version" ColumnName="version" />
- <ScalarProperty Name="active" ColumnName="active" />
- <ScalarProperty Name="date_created" ColumnName="date_created" />
- <ScalarProperty Name="user_id" ColumnName="user_id" />
- <ScalarProperty Name="created_by" ColumnName="created_by" />
- <ScalarProperty Name="short_description" ColumnName="short_description" />
- <ScalarProperty Name="topics_content" ColumnName="topics_content" />
- <ScalarProperty Name="type" ColumnName="type" />
- <ScalarProperty Name="id" ColumnName="id" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="SPUsersInRoles">
- <EntityTypeMapping TypeName="socialprofilesModel.SPUsersInRole">
- <MappingFragment StoreEntitySet="SPUsersInRoles">
- <ScalarProperty Name="RoleId" ColumnName="RoleId" />
- <ScalarProperty Name="UserId" ColumnName="UserId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="SPWorkPlaces">
- <EntityTypeMapping TypeName="socialprofilesModel.SPWorkPlace">
- <MappingFragment StoreEntitySet="SPWorkPlace">
- <ScalarProperty Name="isCurrent" ColumnName="isCurrent" />
- <ScalarProperty Name="postion" ColumnName="postion" />
- <ScalarProperty Name="startDate" ColumnName="startDate" />
- <ScalarProperty Name="endDate" ColumnName="endDate" />
- <ScalarProperty Name="description" ColumnName="description" />
- <ScalarProperty Name="companyName" ColumnName="companyName" />
- <ScalarProperty Name="id" ColumnName="id" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="sysdiagrams">
- <EntityTypeMapping TypeName="socialprofilesModel.sysdiagram">
- <MappingFragment StoreEntitySet="sysdiagrams">
- <ScalarProperty Name="definition" ColumnName="definition" />
- <ScalarProperty Name="version" ColumnName="version" />
- <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
- <ScalarProperty Name="principal_id" ColumnName="principal_id" />
- <ScalarProperty Name="name" ColumnName="name" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="SPLogins">
- <EntityTypeMapping TypeName="socialprofilesModel.SPLogin">
- <MappingFragment StoreEntitySet="SPLogins">
- <ScalarProperty Name="status" ColumnName="status" />
- <ScalarProperty Name="updated_date" ColumnName="updated_date" />
- <ScalarProperty Name="created_date" ColumnName="created_date" />
- <ScalarProperty Name="isLockedOut" ColumnName="isLockedOut" />
- <ScalarProperty Name="validto" ColumnName="validto" />
- <ScalarProperty Name="validfrom" ColumnName="validfrom" />
- <ScalarProperty Name="password" ColumnName="password" />
- <ScalarProperty Name="username" ColumnName="username" />
- <ScalarProperty Name="UserId" ColumnName="UserId" />
- <ScalarProperty Name="id" ColumnName="id" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Users">
- <EntityTypeMapping TypeName="socialprofilesModel.User">
- <MappingFragment StoreEntitySet="Users">
- <ScalarProperty Name="status" ColumnName="status" />
- <ScalarProperty Name="isLockedOut" ColumnName="isLockedOut" />
- <ScalarProperty Name="failedLoginAttemps" ColumnName="failedLoginAttemps" />
- <ScalarProperty Name="emailVerificationCode" ColumnName="emailVerificationCode" />
- <ScalarProperty Name="email" ColumnName="email" />
- <ScalarProperty Name="registrationdate" ColumnName="registrationdate" />
- <ScalarProperty Name="phone" ColumnName="phone" />
- <ScalarProperty Name="ipaddress" ColumnName="ipaddress" />
- <ScalarProperty Name="postcode" ColumnName="postcode" />
- <ScalarProperty Name="town" ColumnName="town" />
- <ScalarProperty Name="county" ColumnName="county" />
- <ScalarProperty Name="lastname" ColumnName="lastname" />
- <ScalarProperty Name="address2" ColumnName="address2" />
- <ScalarProperty Name="address1" ColumnName="address1" />
- <ScalarProperty Name="firstname" ColumnName="firstname" />
- <ScalarProperty Name="mapping_id" ColumnName="mapping_id" />
- <ScalarProperty Name="id" ColumnName="id" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- </EntityContainerMapping>
- </Mapping>
- </edmx:Mappings>
- </edmx:Runtime>
- <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
- <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
- <Connection>
- <DesignerInfoPropertySet>
- <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
- </DesignerInfoPropertySet>
- </Connection>
- <Options>
- <DesignerInfoPropertySet>
- <DesignerProperty Name="ValidateOnBuild" Value="true" />
- <DesignerProperty Name="EnablePluralization" Value="True" />
- <DesignerProperty Name="IncludeForeignKeysInModel" Value="True" />
- <DesignerProperty Name="CodeGenerationStrategy" Value="Default" />
- </DesignerInfoPropertySet>
- </Options>
- <!-- Diagram content (shape and connector positions) -->
- <Diagrams></Diagrams>
- </Designer>
- </edmx:Edmx>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement