Mvc4Model.edmx


Dosyayı İndir
<?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="Mvc4DbModel.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="Mvc4DbModelStoreContainer">
          <EntitySet Name="Category" EntityType="Mvc4DbModel.Store.Category" store:Type="Tables" Schema="dbo" />
          <EntitySet Name="Product" EntityType="Mvc4DbModel.Store.Product" store:Type="Tables" Schema="dbo" />
          <EntitySet Name="Sample" EntityType="Mvc4DbModel.Store.Sample" store:Type="Tables" Schema="dbo" />
          <AssociationSet Name="FK_Product_Category" Association="Mvc4DbModel.Store.FK_Product_Category">
            <End Role="Category" EntitySet="Category" />
            <End Role="Product" EntitySet="Product" />
          </AssociationSet>
        </EntityContainer>
        <EntityType Name="Category">
          <Key>
            <PropertyRef Name="CategoryId" />
          </Key>
          <Property Name="CategoryId" Type="bigint" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="CategoryName" Type="varchar" MaxLength="50" />
        </EntityType>
        <EntityType Name="Product">
          <Key>
            <PropertyRef Name="ProductId" />
          </Key>
          <Property Name="ProductId" Type="bigint" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="ProductName" Type="varchar" MaxLength="50" />
          <Property Name="SalesPrice" Type="float" />
          <Property Name="CategoryId" Type="bigint" />
        </EntityType>
        <EntityType Name="Sample">
          <Key>
            <PropertyRef Name="SampleId" />
          </Key>
          <Property Name="SampleId" Type="bigint" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="SampleName" Type="varchar" MaxLength="50" />
          <Property Name="SampleValue" Type="float" />
        </EntityType>
        <Association Name="FK_Product_Category">
          <End Role="Category" Type="Mvc4DbModel.Store.Category" Multiplicity="0..1" />
          <End Role="Product" Type="Mvc4DbModel.Store.Product" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Category">
              <PropertyRef Name="CategoryId" />
            </Principal>
            <Dependent Role="Product">
              <PropertyRef Name="CategoryId" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
      </Schema></edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema Namespace="Mvc4DbModel" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
        <EntityContainer Name="Mvc4DbEntities" annotation:LazyLoadingEnabled="true">
          <EntitySet Name="Samples" EntityType="Mvc4DbModel.Sample" />
          <EntitySet Name="Categories" EntityType="Mvc4DbModel.Category" />
          <EntitySet Name="Products" EntityType="Mvc4DbModel.Product" />
          <AssociationSet Name="FK_Product_Category" Association="Mvc4DbModel.FK_Product_Category">
            <End Role="Category" EntitySet="Categories" />
            <End Role="Product" EntitySet="Products" />
          </AssociationSet>
        </EntityContainer>
        <EntityType Name="Sample">
          <Key>
            <PropertyRef Name="SampleId" />
          </Key>
          <Property Name="SampleId" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="SampleName" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="SampleValue" Type="Double" />
        </EntityType>
        <EntityType Name="Category">
          <Key>
            <PropertyRef Name="CategoryId" />
          </Key>
          <Property Type="Int64" Name="CategoryId" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="String" Name="CategoryName" MaxLength="50" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="Products" Relationship="Mvc4DbModel.FK_Product_Category" FromRole="Category" ToRole="Product" />
        </EntityType>
        <EntityType Name="Product">
          <Key>
            <PropertyRef Name="ProductId" />
          </Key>
          <Property Type="Int64" Name="ProductId" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="String" Name="ProductName" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Double" Name="SalesPrice" />
          <Property Type="Int64" Name="CategoryId" />
          <NavigationProperty Name="Category" Relationship="Mvc4DbModel.FK_Product_Category" FromRole="Product" ToRole="Category" />
        </EntityType>
        <Association Name="FK_Product_Category">
          <End Type="Mvc4DbModel.Category" Role="Category" Multiplicity="0..1" />
          <End Type="Mvc4DbModel.Product" Role="Product" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Category">
              <PropertyRef Name="CategoryId" />
            </Principal>
            <Dependent Role="Product">
              <PropertyRef Name="CategoryId" />
            </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="Mvc4DbModelStoreContainer" CdmEntityContainer="Mvc4DbEntities">
          <EntitySetMapping Name="Samples"><EntityTypeMapping TypeName="Mvc4DbModel.Sample"><MappingFragment StoreEntitySet="Sample">
            <ScalarProperty Name="SampleId" ColumnName="SampleId" />
            <ScalarProperty Name="SampleName" ColumnName="SampleName" />
            <ScalarProperty Name="SampleValue" ColumnName="SampleValue" />
          </MappingFragment></EntityTypeMapping></EntitySetMapping>
          <EntitySetMapping Name="Categories">
            <EntityTypeMapping TypeName="Mvc4DbModel.Category">
              <MappingFragment StoreEntitySet="Category">
                <ScalarProperty Name="CategoryName" ColumnName="CategoryName" />
                <ScalarProperty Name="CategoryId" ColumnName="CategoryId" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Products">
            <EntityTypeMapping TypeName="Mvc4DbModel.Product">
              <MappingFragment StoreEntitySet="Product">
                <ScalarProperty Name="CategoryId" ColumnName="CategoryId" />
                <ScalarProperty Name="SalesPrice" ColumnName="SalesPrice" />
                <ScalarProperty Name="ProductName" ColumnName="ProductName" />
                <ScalarProperty Name="ProductId" ColumnName="ProductId" />
              </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="Mvc4Model">
        <EntityTypeShape EntityType="Mvc4DbModel.Sample" Width="1.5" PointX="0.75" PointY="0.75" Height="1.59568359375" IsExpanded="true" />
        <EntityTypeShape EntityType="Mvc4DbModel.Category" Width="1.5" PointX="3.25" PointY="0.75" Height="1.5956835937499996" />
        <EntityTypeShape EntityType="Mvc4DbModel.Product" Width="1.5" PointX="5.625" PointY="0.75" Height="1.9802864583333335" />
        <AssociationConnector Association="Mvc4DbModel.FK_Product_Category" >
          <ConnectorPoint PointX="4.75" PointY="1.5478417968749998" />
          <ConnectorPoint PointX="5.625" PointY="1.5478417968749998" />
        </AssociationConnector>
      </Diagram>
    </Diagrams>
  </Designer>
</edmx:Edmx>
				
Dosyayı İndir

Bu Sayfayı Paylaş:




Bu Sayfayı Paylaş:

İletişim Bilgileri

Takip Et

Her Hakkı Saklıdır. Bu sitede yayınlanan tüm bilgi ve fikirlerin kullanımından fibiler.com sorumlu değildir. Bu sitede üretilmiş , derlenmiş içerikleri, fibiler.com'u kaynak göstermek koşuluyla kendi sitenizde kullanılabilirsiniz. Ancak telif hakkı olan içeriklerin hakları sahiplerine aittir