Interface IBlockQueryAdapter
SQL block query structure adapter
Namespace: XData.Database.SqlBlock
Assembly: XData.docfx.dll
Syntax
public interface IBlockQueryAdapter
Methods
| Improve this Doc View SourceCastTo<T>()
Type cast modifier
Declaration
IBlockQueryAdapter CastTo<T>()
Returns
| Type | Description |
|---|---|
| IBlockQueryAdapter |
Type Parameters
| Name | Description |
|---|---|
| T | Type to cast |
Default<TValue>(String, DefaultType)
Default value description
Declaration
TValue Default<TValue>(string fieldName, DefaultType source)
Parameters
| Type | Name | Description |
|---|---|---|
| String | fieldName | Field name |
| DefaultType | source | Default value algorithm |
Returns
| Type | Description |
|---|---|
| TValue | Field value |
Type Parameters
| Name | Description |
|---|---|
| TValue | Field type |
Remarks
WARNING! Can be used in dynamic query mapping only!
Default<TValue>(String, DefaultType, TValue)
Default value description
Declaration
TValue Default<TValue>(string fieldName, DefaultType source, TValue value)
Parameters
| Type | Name | Description |
|---|---|---|
| String | fieldName | Field name |
| DefaultType | source | Default value algorithm |
| TValue | value | Default value |
Returns
| Type | Description |
|---|---|
| TValue | Field value |
Type Parameters
| Name | Description |
|---|---|
| TValue | Field type |
Remarks
WARNING! Can be used in dynamic query mapping only!
Default<TValue>(DefaultType)
Default value description
Declaration
TValue Default<TValue>(DefaultType source)
Parameters
| Type | Name | Description |
|---|---|---|
| DefaultType | source | Default value algorithm |
Returns
| Type | Description |
|---|---|
| TValue | Field value |
Type Parameters
| Name | Description |
|---|---|
| TValue | Field type |
Remarks
WARNING! Can be used in dynamic query mapping only!
Default<TValue>(DefaultType, TValue)
Default value description
Declaration
TValue Default<TValue>(DefaultType source, TValue value)
Parameters
| Type | Name | Description |
|---|---|---|
| DefaultType | source | Default value algorithm |
| TValue | value | Default value |
Returns
| Type | Description |
|---|---|
| TValue | Field value |
Type Parameters
| Name | Description |
|---|---|
| TValue | Field type |
Remarks
WARNING! Can be used in dynamic query mapping only!
Expr<TValue>(String, Expression<Func<IBlockQueryAdapter, TValue>>, DbType, Expression<Func<IExpressionMergeAdapter, IStructureFlag>>[])
SQL expression mapping
Declaration
TValue Expr<TValue>(string fieldName, Expression<Func<IBlockQueryAdapter, TValue>> expr, DbType dbType, params Expression<Func<IExpressionMergeAdapter, IStructureFlag>>[] attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| String | fieldName | Expression field name |
| Expression<Func<IBlockQueryAdapter, TValue>> | expr | Expression |
| DbType | dbType | Expression database type |
| Expression<Func<IExpressionMergeAdapter, IStructureFlag>>[] | attributes | Property mapping attributes |
Returns
| Type | Description |
|---|---|
| TValue | Expression value |
Type Parameters
| Name | Description |
|---|---|
| TValue | Expression result type |
Remarks
WARNING! Can be used in dynamic query mapping only!
Expr<TValue>(String, DataExpressionType, String, DbType, Expression<Func<IExpressionMergeAdapter, IStructureFlag>>[])
SQL expression mapping
Declaration
TValue Expr<TValue>(string fieldName, DataExpressionType type, string exprText, DbType dbType, params Expression<Func<IExpressionMergeAdapter, IStructureFlag>>[] attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| String | fieldName | Expression field name |
| DataExpressionType | type | Expression source type |
| String | exprText | Expression text |
| DbType | dbType | Expression database type |
| Expression<Func<IExpressionMergeAdapter, IStructureFlag>>[] | attributes | Property mapping attributes |
Returns
| Type | Description |
|---|---|
| TValue | Expression value |
Type Parameters
| Name | Description |
|---|---|
| TValue | Expression result type |
Remarks
WARNING! Can be used in dynamic query mapping only!
Field<TValue>(Expression<Func<IPropertyMergeAdapter, IStructureFlag>>[])
Field mapping
Declaration
TValue Field<TValue>(params Expression<Func<IPropertyMergeAdapter, IStructureFlag>>[] attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| Expression<Func<IPropertyMergeAdapter, IStructureFlag>>[] | attributes | Property mapping attributes |
Returns
| Type | Description |
|---|---|
| TValue | Field value |
Type Parameters
| Name | Description |
|---|---|
| TValue | Field type |
Remarks
WARNING! Can be used in dynamic query mapping only!
Field<TValue>(String, String, Expression<Func<IPropertyMergeAdapter, IStructureFlag>>[])
Field mapping
Declaration
TValue Field<TValue>(string sourceAlias, string fieldName, params Expression<Func<IPropertyMergeAdapter, IStructureFlag>>[] attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| String | sourceAlias | Source alias |
| String | fieldName | Field name |
| Expression<Func<IPropertyMergeAdapter, IStructureFlag>>[] | attributes | Property mapping attributes |
Returns
| Type | Description |
|---|---|
| TValue | Field value |
Type Parameters
| Name | Description |
|---|---|
| TValue | Field type |
Remarks
WARNING! Can be used in dynamic query mapping only!
Ref<TValue>(String, String, Expression<Func<IPropertyMergeAdapter, IStructureFlag>>[])
Inner view property reference mapping
Declaration
TValue Ref<TValue>(string sourceAlias, string property, params Expression<Func<IPropertyMergeAdapter, IStructureFlag>>[] attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| String | sourceAlias | Referenced property subquery alias |
| String | property | Referenced property name |
| Expression<Func<IPropertyMergeAdapter, IStructureFlag>>[] | attributes | Property mapping attributes |
Returns
| Type | Description |
|---|---|
| TValue | Referenced property value |
Type Parameters
| Name | Description |
|---|---|
| TValue | Referenced property type |
Remarks
WARNING! Can be used in dynamic query mapping only!
Ref<TValue, TDobj>(String, Expression<Func<TDobj, Object>>, Expression<Func<IPropertyMergeAdapter, IStructureFlag>>[])
Inner view property reference mapping
Declaration
TValue Ref<TValue, TDobj>(string sourceAlias, Expression<Func<TDobj, object>> property, params Expression<Func<IPropertyMergeAdapter, IStructureFlag>>[] attributes)
where TDobj : class
Parameters
| Type | Name | Description |
|---|---|---|
| String | sourceAlias | Referenced property subquery alias |
| Expression<Func<TDobj, Object>> | property | Referenced property name |
| Expression<Func<IPropertyMergeAdapter, IStructureFlag>>[] | attributes | Property mapping attributes |
Returns
| Type | Description |
|---|---|
| TValue | Referenced property value |
Type Parameters
| Name | Description |
|---|---|
| TValue | Referenced property type |
| TDobj | Referenced inner view type |
Remarks
WARNING! Can be used in dynamic query mapping only!
Val<TValue>(Expression<Func<ISqlValueAdapter, ISqlValue<TValue>>>, Expression<Func<IMergeAttributeAdapter, IStructureFlag>>[])
SQL block variable/constant/parameter value mapping
Declaration
TValue Val<TValue>(Expression<Func<ISqlValueAdapter, ISqlValue<TValue>>> value, params Expression<Func<IMergeAttributeAdapter, IStructureFlag>>[] attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| Expression<Func<ISqlValueAdapter, ISqlValue<TValue>>> | value | SQL block value mapping expression |
| Expression<Func<IMergeAttributeAdapter, IStructureFlag>>[] | attributes | Merge roles structure flags |
Returns
| Type | Description |
|---|---|
| TValue | Value |
Type Parameters
| Name | Description |
|---|---|
| TValue | Value type |