[]
Represents a collection of mappings for properties of the BasePersistableObject object to the appropriate data fields. Names of properties are keys in this collection.
[TypeConverter(typeof(ComponentConverter))]
public class MappingCollectionBase<T> : KeyedCollection<string, MappingInfo>, IList<MappingInfo>, ICollection<MappingInfo>, IList, ICollection, IReadOnlyList<MappingInfo>, IReadOnlyCollection<MappingInfo>, IEnumerable<MappingInfo>, IEnumerable, IComponent, IDisposable where T : BasePersistableObject, new()
| Name | Description |
|---|---|
| T | The type of the objects for mapping. It should be derived from the BasePersistableObjectclass and have the default parameter-less constructor. |
| Name | Description |
|---|---|
| MappingCollectionBase() | Initializes a new instance of the MappingCollectionBase<T> class. |
| Name | Description |
|---|---|
| Comparer | Gets the generic equality comparer that is used to determine equality of keys in the collection. |
| Count | Gets the number of elements actually contained in the MappingCollectionBase<T> object. |
| IdMapping | Returns MappingInfo object for the C1.C1Schedule.BasePersistableObject.Id property.
If the storage object is bound to a data source via its DataSource property,
the properties of this object allow the C1.C1Schedule.BasePersistableObject.Id property |
| IndexMapping | Returns MappingInfo object for the C1.C1Schedule.BasePersistableObject.Index property. If the storage object is bound to a data source via its DataSource property, the properties of this object allow the C1.C1Schedule.BasePersistableObject.Index property to be bound to the appropriate field in the data source. |
| Site | Gets or sets the ISite associated with the IComponent. |
| Name | Description |
|---|---|
| Add(Type, string, bool, object) | |
| Add(Type, Type, string, bool, object) | |
| Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| GetKeyForItem(MappingInfo) | Returns property name as the key for collection. |
| InsertItem(int, MappingInfo) | |
| NewItem() | Implementation in derived classes should return new object of type T. |
| ReadObject(T, object, bool) | Fills internal object derived from BasePersistableObject with values from specified bound object. |
| ReadObject(T, object, bool, bool) | Fills internal object derived from BasePersistableObject with values from specified bound object. |
| WriteObject(T, object) | When implemented in a derived class fills boundObject with values from specified internalObject. |
| Name | Description |
|---|---|
| Disposed | Represents the method that handles the Disposed event of a component. |