Source

main / Source / WebClient / Web.DataLayer / Entities.edmx

Full commit
<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="2.0" xmlns:edmx="http://schemas.microsoft.com/ado/2008/10/edmx">
  <!-- EF Runtime content -->
  <edmx:Runtime>
    <!-- SSDL content -->
    <edmx:StorageModels>
    <Schema Namespace="DataUp.Web.DataLayer.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/02/edm/ssdl">
        <EntityContainer Name="DataUpWebDataLayerStoreContainer">
          <EntitySet Name="DocumentStore" EntityType="DataUp.Web.DataLayer.Store.DocumentStore" store:Type="Tables" Schema="dbo" />
          <EntitySet Name="User" EntityType="DataUp.Web.DataLayer.Store.User" store:Type="Tables" Schema="dbo" />
          <AssociationSet Name="FK_DocumentStore_User" Association="DataUp.Web.DataLayer.Store.FK_DocumentStore_User">
            <End Role="User" EntitySet="User" />
            <End Role="DocumentStore" EntitySet="DocumentStore" />
          </AssociationSet>
        </EntityContainer>
        <EntityType Name="DocumentStore">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Name="Id" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="Title" Type="nvarchar" Nullable="false" MaxLength="1000" />
          <Property Name="Description" Type="nvarchar(max)" />
          <Property Name="Size" Type="float" Nullable="false" />
          <Property Name="Status" Type="nvarchar" Nullable="false" MaxLength="200" />
          <Property Name="Metadata" Type="nvarchar(max)" />
          <Property Name="Identifier" Type="nvarchar" MaxLength="150" />
          <Property Name="Citation" Type="nvarchar" MaxLength="1000" />
          <Property Name="UserId" Type="int" Nullable="false" />
          <Property Name="Filename" Type="nvarchar" Nullable="false" MaxLength="1000" />
          <Property Name="FileData" Type="varbinary(max)" />
          <Property Name="FileId" Type="nvarchar" MaxLength="200" />
          <Property Name="UploadedDate" Type="datetime" />
          <Property Name="MimeType" Type="nvarchar" MaxLength="200" />
        </EntityType>
        <EntityType Name="User">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Name="Id" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="NameIdentifier" Type="varchar" Nullable="false" MaxLength="100" />
          <Property Name="IdentityProvider" Type="varchar" Nullable="false" MaxLength="20" />
          <Property Name="FirstName" Type="nvarchar" Nullable="false" MaxLength="150" />
          <Property Name="LastName" Type="nvarchar" Nullable="false" MaxLength="150" />
          <Property Name="Organization" Type="nvarchar" MaxLength="150" />
          <Property Name="EmailId" Type="nvarchar" Nullable="false" MaxLength="100" />
          <Property Name="MiddleName" Type="nvarchar" MaxLength="150" />
        </EntityType>
        <Association Name="FK_DocumentStore_User">
          <End Role="User" Type="DataUp.Web.DataLayer.Store.User" Multiplicity="1" />
          <End Role="DocumentStore" Type="DataUp.Web.DataLayer.Store.DocumentStore" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="User">
              <PropertyRef Name="Id" />
            </Principal>
            <Dependent Role="DocumentStore">
              <PropertyRef Name="UserId" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
      </Schema></edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema Namespace="DataUp.Web.DataLayer" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
        <EntityContainer Name="DataUpEntities" annotation:LazyLoadingEnabled="true">
          <EntitySet Name="DocumentStores" EntityType="DataUp.Web.DataLayer.DocumentStore" />
          <EntitySet Name="Users" EntityType="DataUp.Web.DataLayer.User" />
          <AssociationSet Name="FK_DocumentStore_User" Association="DataUp.Web.DataLayer.FK_DocumentStore_User">
            <End Role="User" EntitySet="Users" />
            <End Role="DocumentStore" EntitySet="DocumentStores" />
          </AssociationSet>
        </EntityContainer>
        <EntityType Name="DocumentStore">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Title" Type="String" Nullable="false" MaxLength="1000" Unicode="true" FixedLength="false" />
          <Property Name="Description" Type="String" MaxLength="Max" Unicode="true" FixedLength="false" />
          <Property Name="Size" Type="Double" Nullable="false" />
          <Property Name="Status" Type="String" Nullable="false" MaxLength="200" Unicode="true" FixedLength="false" />
          <Property Name="Metadata" Type="String" MaxLength="Max" Unicode="true" FixedLength="false" />
          <Property Name="Identifier" Type="String" MaxLength="150" Unicode="true" FixedLength="false" />
          <Property Name="Citation" Type="String" MaxLength="1000" Unicode="true" FixedLength="false" />
          <Property Name="UserId" Type="Int32" Nullable="false" />
          <Property Name="Filename" Type="String" Nullable="false" MaxLength="1000" Unicode="true" FixedLength="false" />
          <Property Name="FileData" Type="Binary" MaxLength="Max" FixedLength="false" />
          <Property Name="FileId" Type="String" MaxLength="200" Unicode="true" FixedLength="false" />
          <NavigationProperty Name="User" Relationship="DataUp.Web.DataLayer.FK_DocumentStore_User" FromRole="DocumentStore" ToRole="User" />
          <Property Type="DateTime" Name="UploadedDate" />
          <Property Type="String" Name="MimeType" MaxLength="50" FixedLength="false" Unicode="true" />
        </EntityType>
        <EntityType Name="User">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="NameIdentifier" Type="String" Nullable="false" MaxLength="100" Unicode="false" FixedLength="false" />
          <Property Name="IdentityProvider" Type="String" Nullable="false" MaxLength="20" Unicode="false" FixedLength="false" />
          <Property Name="FirstName" Type="String" Nullable="false" MaxLength="150" Unicode="true" FixedLength="false" />
          <Property Name="LastName" Type="String" Nullable="false" MaxLength="150" Unicode="true" FixedLength="false" />
          <Property Name="Organization" Type="String" MaxLength="150" Unicode="true" FixedLength="false" />
          <Property Name="EmailId" Type="String" Nullable="false" MaxLength="100" Unicode="true" FixedLength="false" />
          <NavigationProperty Name="DocumentStores" Relationship="DataUp.Web.DataLayer.FK_DocumentStore_User" FromRole="User" ToRole="DocumentStore" />
          <Property Type="String" Name="MiddleName" MaxLength="150" FixedLength="false" Unicode="true" />
        </EntityType>
        <Association Name="FK_DocumentStore_User">
          <End Role="User" Type="DataUp.Web.DataLayer.User" Multiplicity="1" />
          <End Role="DocumentStore" Type="DataUp.Web.DataLayer.DocumentStore" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="User">
              <PropertyRef Name="Id" />
            </Principal>
            <Dependent Role="DocumentStore">
              <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/2008/09/mapping/cs">
        <EntityContainerMapping StorageEntityContainer="DataUpWebDataLayerStoreContainer" CdmEntityContainer="DataUpEntities">
          <EntitySetMapping Name="DocumentStores"><EntityTypeMapping TypeName="DataUp.Web.DataLayer.DocumentStore"><MappingFragment StoreEntitySet="DocumentStore">
            <ScalarProperty Name="MimeType" ColumnName="MimeType" />
                <ScalarProperty Name="UploadedDate" ColumnName="UploadedDate" />
                <ScalarProperty Name="Id" ColumnName="Id" />
            <ScalarProperty Name="Title" ColumnName="Title" />
            <ScalarProperty Name="Description" ColumnName="Description" />
            <ScalarProperty Name="Size" ColumnName="Size" />
            <ScalarProperty Name="Status" ColumnName="Status" />
            <ScalarProperty Name="Metadata" ColumnName="Metadata" />
            <ScalarProperty Name="Identifier" ColumnName="Identifier" />
            <ScalarProperty Name="Citation" ColumnName="Citation" />
            <ScalarProperty Name="UserId" ColumnName="UserId" />
            <ScalarProperty Name="Filename" ColumnName="Filename" />
            <ScalarProperty Name="FileData" ColumnName="FileData" />
            <ScalarProperty Name="FileId" ColumnName="FileId" />
          </MappingFragment></EntityTypeMapping></EntitySetMapping>
          <EntitySetMapping Name="Users"><EntityTypeMapping TypeName="DataUp.Web.DataLayer.User"><MappingFragment StoreEntitySet="User">
            <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
                <ScalarProperty Name="Id" ColumnName="Id" />
            <ScalarProperty Name="NameIdentifier" ColumnName="NameIdentifier" />
            <ScalarProperty Name="IdentityProvider" ColumnName="IdentityProvider" />
            <ScalarProperty Name="FirstName" ColumnName="FirstName" />
            <ScalarProperty Name="LastName" ColumnName="LastName" />
            <ScalarProperty Name="Organization" ColumnName="Organization" />
            <ScalarProperty Name="EmailId" ColumnName="EmailId" />
          </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/2008/10/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" />
      </DesignerInfoPropertySet>
    </Options>
    <!-- Diagram content (shape and connector positions) -->
    <Diagrams>
      <Diagram Name="Entities">
        <EntityTypeShape EntityType="DataUp.Web.DataLayer.DocumentStore" Width="1.5" PointX="3" PointY="1" Height="3.0714322916666661" IsExpanded="true" />
        <EntityTypeShape EntityType="DataUp.Web.DataLayer.User" Width="1.5" PointX="0.75" PointY="1.375" Height="2.2496956380208335" IsExpanded="true" />
        <AssociationConnector Association="DataUp.Web.DataLayer.FK_DocumentStore_User" ManuallyRouted="false">
          <ConnectorPoint PointX="2.25" PointY="2.4998478190104167" />
          <ConnectorPoint PointX="3" PointY="2.4998478190104167" />
        </AssociationConnector>
      </Diagram>
    </Diagrams>
  </Designer>
</edmx:Edmx>