LinkingSetRelationAttribute class

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

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

[AttributeUsage(AttributeTargets.Property)]
public sealed class LinkingSetRelationAttribute : Attribute
parameter description
rowType Linking row type
thisKey Name of the field in linking row that corresponds to ID in this table
itemKey Name of the field in linking row that will hold item values in list

Public Members

name description
LinkingSetRelationAttribute(…) Specifies a linking set relation (1-N relation of ID values, like a check list.)
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.

Remarks

Declares a linking set relation

See Also