LinkingSetRelationAttribute class

namespace: Serenity.Data.Mapping   assemblySerenity.Net.Data

Specifies a linking set relation (1-N relation of ID values, like a check list.)

[AttributeUsage(AttributeTargets.Property)]
public sealed class LinkingSetRelationAttribute : Attribute

Public Members

name description
LinkingSetRelationAttribute(…) Declares a linking set relation
FilterField { get; set; } Gets or sets the filter field.
FilterValue { get; set; } Gets or sets the filter value.
ForceCascadeDelete { get; set; } Forces deletion of linking row records even if master record uses soft delete. If false (default) this doesn't delete linking records, as master record might be undeleted.
HandleEqualityFilter { get; set; } Gets or sets a value indicating whether to handle equality filter.
ItemKey { get; } Gets the item key, e.g. name of the field in linking set table that contains ID's of selected items.
PreserveOrder { get; set; } Gets or sets a value indicating whether to preserve existing order of records on save.
RowType { get; } Gets the type of the row.
ThisKey { get; } Gets the this key, e.g. name of field in linking set table that this tables ID field corresponds to.

See Also