Class SubqueryFilterAttribute
Data object subquery filter attribute
Inheritance
SubqueryFilterAttribute
Inherited Members
Namespace: XData.Mapping
Assembly: XData.docfx.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class SubqueryFilterAttribute : OptionalFilterAttribute
Remarks
Filter data by subquery:
some_field = (select ...)
some_field != (select ...)
some_field in (select ...)
some_field not in (select ...)
exists (select ...)
not exists (select ...)
Constructors
| Improve this Doc View SourceSubqueryFilterAttribute(String, String, String)
Subquery filter attribute
Declaration
public SubqueryFilterAttribute(string subquery, string source, string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| String | subquery | Subquery alias |
| String | source | Primary source alias |
| String | fieldName | Primary field name |
Exceptions
| Type | Condition |
|---|---|
| XDataRuntimeException | Subquery alias cannot be null or empty string |
Properties
| Improve this Doc View SourceFilterType
Filter type
Declaration
public override FilterType FilterType { get; }
Property Value
| Type | Description |
|---|---|
| FilterType | Subquery |
Overrides
| Improve this Doc View SourceSubquery
Subquery alias
Declaration
public string Subquery { get; }
Property Value
| Type | Description |
|---|---|
| String |
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. |
Overrides
Extension Methods
SqlBlockExtensions.SetExpression<TTag, TResult>(TTag, Expression<Func<IBlockQueryAdapter, TResult>>)