/// <summary> /// Initializes a new instance of the <see cref="EntityMapping"/> class. /// </summary> /// <param name="type">Type.</param> /// <param name="parentMapping">Parent mapping.</param> public EntityMapping(string type, Mapping parentMapping) { _Type = type; _Ids = new PrimaryKeyMappingCollection(); _Attributes = new AttributeMappingCollection(); _Attributes.TypeName = type; _References = new ReferenceMappingCollection(); _ParentMapping = parentMapping; }
/// <summary> /// Initializes a new instance of the <see cref="EntityMapping"/> class. /// </summary> public EntityMapping() { _Ids = new PrimaryKeyMappingCollection(); _Attributes = new AttributeMappingCollection(); _References = new ReferenceMappingCollection(); }