Class ConstantFilterAttribute
Data object constant value filter attribute
Inherited Members
Namespace: XData.Mapping
Assembly: XData.docfx.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class ConstantFilterAttribute : FilterAttribute
Remarks
Filter value can be constant, data object variable value (see Variables), current date or time
Constructors
| Improve this Doc View SourceConstantFilterAttribute(String, String, String, Object)
Constant filter attribute
Declaration
public ConstantFilterAttribute(string name, string source, string fieldName, object constant)
Parameters
Type | Name | Description |
---|---|---|
String | name | Filter name |
String | source | Filter source alias |
String | fieldName | Filter field name |
Object | constant | Filter value |
Exceptions
Type | Condition |
---|---|
XDataRuntimeException | Filter name cannot be null or empty string |
Properties
| Improve this Doc View SourceConstantType
Filter value type
Declaration
public FilterConstantType ConstantType { get; set; }
Property Value
Type | Description |
---|---|
FilterConstantType |
See Also
| Improve this Doc View SourceConstantValue
Filter value
Declaration
public object ConstantValue { get; }
Property Value
Type | Description |
---|---|
Object |
See Also
| Improve this Doc View SourceFilterType
Filter type
Declaration
public override FilterType FilterType { get; }
Property Value
Type | Description |
---|---|
FilterType | Constant |
Overrides
| Improve this Doc View SourceName
Filter parameter name
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
No Sql parameter prefix needed
Nullable
Filter null value handling mode
Declaration
public FilterNullable Nullable { get; set; }
Property Value
Type | Description |
---|---|
FilterNullable |
See Also
| Improve this Doc View SourceTypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
Declaration
public override object TypeId { get; }
Property Value
Type | Description |
---|---|
Object | An Object that is a unique identifier for the attribute. |