TableOperationsTRootQueryRestriction Property

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

Definition

Namespace: Gemstone.Data.Model
Assembly: Gemstone.Data (in Gemstone.Data.dll) Version: 1.0.128 -- Release Build+cb657b646daac3e9cc5384ff42ed4530df50eab1
public RecordRestriction? RootQueryRestriction { get; set; }

Property Value

RecordRestriction

Implements

ITableOperationsRootQueryRestriction

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