FilterAttribute Class
Applies a named filter to an entity class or a many-valued association.
Remarks
Filters allow you to conditionally restrict which records are retrieved without modifying queries. A filter must first be defined using FilterDefAttribute on the entity class, then applied using FilterAttribute. Filters can be enabled or disabled at runtime on the object manager. The optional SqlCondition overrides the default SQL condition defined in the FilterDef.
Syntax
Unit: Aurelius.Mapping.Attributes
FilterAttribute = class(TCustomAttribute);
Constructors
| Name | Description |
|---|---|
| Create | Overloaded Create(string) Create(string, string) |
Properties
| Name | Description |
|---|---|
| FilterName | Gets the name of the filter being applied. |
| SqlCondition | Gets the SQL condition that overrides the filter definition's default, or an empty string if the default is used. |