Click or drag to resize

RootQueryRestrictionAttribute Class

Defines an attribute that will mark a modeled table with a record restriction that applies to all query functions for modeled TableOperationsT.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    GSF.Data.ModelRootQueryRestrictionAttribute

Namespace: GSF.Data.Model
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
[AttributeUsageAttribute(AttributeTargets.Class)]
public sealed class RootQueryRestrictionAttribute : Attribute
View Source

The RootQueryRestrictionAttribute type exposes the following members.

Constructors
 NameDescription
Public methodRootQueryRestrictionAttribute Creates a new parameterized RootQueryRestrictionAttribute with the specified SQL filter expression and parameters.
Top
Properties
 NameDescription
Public propertyTypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute)
Top
Methods
 NameDescription
Public methodEqualsReturns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute)
Public methodGetHashCodeReturns the hash code for this instance.
(Inherited from Attribute)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsDefaultAttributeWhen overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute)
Public methodMatchWhen overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldApplyToDeletes Gets or sets flag that determines if root query restriction should be applied to delete operations.
Public fieldApplyToUpdates Gets or sets flag that determines if root query restriction should be applied to update operations.
Public fieldFilterExpression Defines filter SQL expression for restriction as a composite format string - does not include WHERE. When escaping is needed for field names, use standard ANSI quotes.
Public fieldParameters Defines restriction parameter values.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also