[]
        
(Showing Draft Content)

C1.Schedule.BaseObjectMappingCollection-1

BaseObjectMappingCollection<T> Class

Represents a generic collection of mappings for properties of the BaseObject derived objects to appropriate data fields.

Inheritance
BaseObjectMappingCollection<T>
Namespace: C1.Schedule
Assembly: C1.ScheduleCore.dll
Syntax
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()
Type Parameters
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.

Constructors

Name Description
BaseObjectMappingCollection()

Initializes a new instance of the BaseObjectMappingCollection<T> class.

Properties

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.

Methods

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.