RelationManyAttribute

Ecng.Serialization

Marks a property as a collection (one-to-many or many-to-many) relation.

Herda de: Attribute

Construtores

RelationManyAttribute
public RelationManyAttribute(Type listType)
relationManyAttribute = RelationManyAttribute(listType)

Marks a property as a collection (one-to-many or many-to-many) relation.

listType
Optional custom list type for the collection.

Propriedades

BufferSize
public int BufferSize { get; set; }
value = relationManyAttribute.BufferSize
relationManyAttribute.BufferSize = value

Gets or sets the buffer size for loading relation elements.

BulkLoad
public bool BulkLoad { get; set; }
value = relationManyAttribute.BulkLoad
relationManyAttribute.BulkLoad = value

Gets or sets whether to use bulk loading for this relation.

CacheCount
public bool CacheCount { get; set; }
value = relationManyAttribute.CacheCount
relationManyAttribute.CacheCount = value

Gets or sets whether to cache the element count for this relation.

ListType
public Type ListType { get; }
value = relationManyAttribute.ListType

Gets the custom list type for the relation collection.