|
TableOperations<T> .ApplyRootQueryRestrictionToDeletes Property
|
Namespace: GSF.Data.ModelAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.240-beta+897dce54fc8a4a27d3c8972aabbe9a3d48c9c170
Syntaxpublic bool ApplyRootQueryRestrictionToDeletes { get; set; }
Public Property ApplyRootQueryRestrictionToDeletes As Boolean
Get
Set
public:
virtual property bool ApplyRootQueryRestrictionToDeletes {
bool get () sealed;
void set (bool value) sealed;
}
abstract ApplyRootQueryRestrictionToDeletes : bool with get, set
override ApplyRootQueryRestrictionToDeletes : bool with get, set
function get_ApplyRootQueryRestrictionToDeletes();
function set_ApplyRootQueryRestrictionToDeletes(value);
View SourceProperty Value
BooleanImplements
ITableOperations.ApplyRootQueryRestrictionToDeletes
Remarks
If RootQueryRestriction only references primary key fields, then this property value should be set
to false since default delete operations for a modeled record already work against primary key fields.
This flag can be manually set per TableOperations<T> instance or handled automatically by marking
a model with the RootQueryRestrictionAttribute and assigning a value to the attribute property
ApplyToDeletes.
See Also