<EntityType Name="PizzaSize">
<Key><PropertyRef Name="ID" /></Key>
<Property
Name="ID" Type="Int32" Nullable="false"
/>
<Property
Name="SizeName" Type="String" Nullable="false"
MaxLength="50" />
<NavigationProperty
Name="PizzaOrder“ Relationship =
"PizzaModel.FK_PizzaOrder_PizzaSize"
FromRole="PizzaSize" ToRole="PizzaOrder" />
</EntityType> …
<EntityType Name="PizzaSize">
<Key><PropertyRef Name="ID" /></Key>
<Property
Name="ID" Type="int" Nullable="false"
StoreGeneratedPattern="Identity" />
<Property
Name="SizeName" Type="nvarchar" Nullable="false"
MaxLength="50" />
</EntityType> …
<EntityTypeMapping
TypeName="IsTypeOf(PizzaModel.PizzaSize)">
<MappingFragment StoreEntitySet="PizzaSize">
<ScalarProperty Name="ID" ColumnName="ID"
/>
<ScalarProperty Name="SizeName"
ColumnName="SizeName" />
</MappingFragment>
</EntityTypeMapping>