[]
Represents a generic collection of mappings for properties of the BaseObject derived objects to appropriate data fields.
public class BaseObjectMappingCollection<T> : MappingCollectionBase<T>, IList<MappingInfo>, ICollection<MappingInfo>, IList, ICollection, IReadOnlyList<MappingInfo>, IReadOnlyCollection<MappingInfo>, IEnumerable<MappingInfo>, IEnumerable, IComponent, IDisposable where T : BaseObject, new()
Name | Description |
---|---|
T | The type of the objects for mapping. It should be derived from the BaseObject class and have the default parameter-less constructor. |
Name | Description |
---|---|
BaseObjectMappingCollection() | Initializes a new instance of the BaseObjectMappingCollection<T> class. |
Name | Description |
---|---|
CaptionMapping | Returns MappingInfo object for MenuCaption property of the object. If the storage object is bound to a data source via its DataSource property, the properties of this object allow the MenuCaption property of the object to be bound to the appropriate field in the data source. |
ColorMapping | Returns MappingInfo object for the Color property of the object. If the storage object is bound to a data source via its DataSource property, the properties of this object allow the Color property of the object to be bound to the appropriate field in the data source. |
TextMapping | Returns MappingInfo object for the Text property of the object. If the storage object is bound to a data source via its DataSource property, the properties of this object allow the Text property of the object to be bound to the appropriate field in the data source. |
Name | Description |
---|---|
ReadObject(T, object, bool) | Fills BaseObject object with values from specified boundObject. |
WriteObject(T, object) | Fills boundObject with values from specified BaseObject object. |