Click or drag to resize

ITableOperationsRootQueryRestriction Property

Gets or sets root record restriction that applies to query table operations.

Namespace: GSF.Data.Model
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
RecordRestriction RootQueryRestriction { get; set; }
View Source

Property Value

RecordRestriction
Remarks

Defining a root query restriction creates a base query filter that gets applied to all query operations, even when another restriction is applied - in this case the root restriction will be pre-pended to the specified query, e.g.:

C#
restriction = RootQueryRestriction + restriction;
A root query restriction is useful to apply a common state to the query operations, e.g., always filtering records for a specific user or context.

A root query restriction can be manually assigned to a TableOperationsT instance or automatically assigned by marking a model with the RootQueryRestrictionAttribute.

If any of the Parameters reference a table field that is modeled with either an EncryptDataAttribute or FieldDataTypeAttribute, then the function GetInterpretedFieldValue(String, Object) will need to be called, replacing the target parameter with the returned value so that the field value will be properly set prior to executing the database function.

See Also