Entity framework figure the entity data model wizardfigure specifying the database connection propertiesnext
Entity Framework❘575
5. |
---|
FIGURE 12 - 6: Select the database objects
< ?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=”WroxModel.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=”WroxModelStoreContainer” >
< EntitySet Name=”Product” EntityType=
“WroxModel.Store.Product” store:Type=
“Tables” Schema=”Production” / >
< /EntityContainer >
< EntityType Name=”Product” >
< Key >
< PropertyRef Name=”ProductID” / >
< /Key >
< Property Name=”ProductID” Type=”int” Nullable=”false”
StoreGeneratedPattern=”Identity” / >
< Property Name=”ModifiedDate” Type=”datetime” Nullable=”false” / > < /EntityType >
< /Schema >
< /edmx:StorageModels >
< !-- CSDL content -- >
< edmx:ConceptualModels >
< Schema Namespace=”WroxModel” Alias=”Self”
xmlns:annotation=
“http://schemas.microsoft.com/ado/2009/02/edm/annotation”
xmlns=”http://schemas.microsoft.com/ado/2008/09/edm” >
< EntityContainer Name=”WroxEntities” annotation:LazyLoadingEnabled=”true” > < EntitySet Name=”Products” EntityType=”WroxModel.Product” / >
< /EntityContainer >
< EntityType Name=”Product” >
< Key >
< PropertyRef Name=”ProductID” / >
< /Key >
< Property Name=”ProductID” Type=”Int32” Nullable=”false”
annotation:StoreGeneratedPattern=”Identity” / >
< /EntityType >
< /Schema >
< /edmx:ConceptualModels >
< !-- C-S mapping content -- >
< edmx:Mappings >