EntityContainerMapping Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the Mapping metadata for the EntityContainer map in CS space. Only one EntityContainerMapping element is allowed in the MSL file for CS mapping.
public class EntityContainerMapping : System.Data.Entity.Core.Mapping.MappingBase
type EntityContainerMapping = class
inherit MappingBase
Public Class EntityContainerMapping
Inherits MappingBase
- Inheritance
Examples
For Example if conceptually you could represent the CS MSL file as following ---Mapping --EntityContainerMapping ( CNorthwind-->SNorthwind ) --EntitySetMapping --AssociationSetMapping The type represents the metadata for EntityContainerMapping element in the above example. The EntitySetBaseMapping elements that are children of the EntityContainerMapping element can be accessed through the properties on this type.
Remarks
We currently assume that an Entity Container on the C side is mapped to a single Entity Container in the S - space.
Constructors
EntityContainerMapping(EntityContainer, EntityContainer, StorageMappingItemCollection, Boolean) |
Initializes a new EntityContainerMapping instance. |
Properties
AssociationSetMappings |
Gets the association set mappings. |
BuiltInTypeKind |
Gets the type kind for this item |
ConceptualEntityContainer |
Gets the conceptual entity container. |
Documentation |
Gets or sets the documentation associated with this type. (Inherited from MetadataItem) |
EntitySetMappings |
Gets the entity set mappings. |
FunctionImportMappings |
Gets the function import mappings. |
GenerateUpdateViews |
Gets a flag that indicates whether to generate the update views or not. |
MappingItemCollection |
Gets the parent mapping item collection. |
MetadataProperties |
Gets the list of properties of the current type. (Inherited from MetadataItem) |
StoreEntityContainer |
Gets the store entity container. |
Methods
AddAnnotation(String, Object) |
Adds or updates an annotation with the specified name and value. (Inherited from MetadataItem) |
AddFunctionImportMapping(FunctionImportMapping) |
Adds a function import mapping. |
AddSetMapping(AssociationSetMapping) |
Adds an association set mapping. |
AddSetMapping(EntitySetMapping) |
Adds an entity set mapping. |
RemoveAnnotation(String) |
Removes an annotation with the specified name. (Inherited from MetadataItem) |
RemoveFunctionImportMapping(FunctionImportMapping) |
Removes a function import mapping. |
RemoveSetMapping(AssociationSetMapping) |
Removes an association set mapping. |
RemoveSetMapping(EntitySetMapping) |
Removes an association set mapping. |
Applies to
Entity Framework