ComplexPropertyMapping 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.
Mapping metadata for Complex properties.
public class ComplexPropertyMapping : System.Data.Entity.Core.Mapping.PropertyMapping
type ComplexPropertyMapping = class
inherit PropertyMapping
Public Class ComplexPropertyMapping
Inherits PropertyMapping
- Inheritance
Examples
For Example if conceptually you could represent the CS MSL file as following --Mapping --EntityContainerMapping ( CNorthwind-->SNorthwind ) --EntitySetMapping --EntityTypeMapping --MappingFragment --EntityKey --ScalarPropertyMap ( CMemberMetadata-->SMemberMetadata ) --ScalarPropertyMap ( CMemberMetadata-->SMemberMetadata ) --EntityTypeMapping --MappingFragment --EntityKey --ScalarPropertyMap ( CMemberMetadata-->SMemberMetadata ) --ComplexPropertyMap --ComplexTypeMapping --ScalarPropertyMap ( CMemberMetadata-->SMemberMetadata ) --ScalarProperyMap ( CMemberMetadata-->SMemberMetadata ) --DiscriminatorProperyMap ( constant value-->SMemberMetadata ) --ComplexTypeMapping --ScalarPropertyMap ( CMemberMetadata-->SMemberMetadata ) --ScalarProperyMap ( CMemberMetadata-->SMemberMetadata ) --DiscriminatorProperyMap ( constant value-->SMemberMetadata ) --ScalarPropertyMap ( CMemberMetadata-->SMemberMetadata ) --AssociationSetMapping --AssociationTypeMapping --MappingFragment --EndPropertyMap --ScalarPropertyMap ( CMemberMetadata-->SMemberMetadata ) --ScalarProperyMap ( CMemberMetadata-->SMemberMetadata ) --EndPropertyMap --ScalarPropertyMap ( CMemberMetadata-->SMemberMetadata ) This class represents the metadata for all the complex property map elements in the above example. ComplexPropertyMaps contain ComplexTypeMaps which define mapping based on the type of the ComplexProperty in case of inheritance.
Constructors
ComplexPropertyMapping(EdmProperty) |
Construct a new Complex Property mapping object |
Properties
Property |
Gets an EdmProperty that specifies the mapped property. (Inherited from PropertyMapping) |
TypeMappings |
Gets a read only collections of type mappings corresponding to the nested complex types. |
Methods
AddTypeMapping(ComplexTypeMapping) |
Adds a type mapping corresponding to a nested complex type. |
RemoveTypeMapping(ComplexTypeMapping) |
Removes a type mapping corresponding to a nested complex type. |
Applies to
Entity Framework