Interface IQueryStructureAdapter
Query structure mapping adapter interface
Namespace: XData.Mapping.Dynamic
Assembly: XData.docfx.dll
Syntax
public interface IQueryStructureAdapter
Methods
| Improve this Doc View SourceCastTo<T>()
Type cast modifier
Declaration
IQueryStructureAdapter CastTo<T>()
Returns
| Type | Description |
|---|---|
| IQueryStructureAdapter |
Type Parameters
| Name | Description |
|---|---|
| T | Type to cast |
Expr<TValue>(String, Expression<Func<IQueryStructureAdapter, TValue>>, DbType, Expression<Func<IExpressionPropertyAdapter, IStructureFlag>>[])
SQL expression mapping
Declaration
TValue Expr<TValue>(string fieldName, Expression<Func<IQueryStructureAdapter, TValue>> expr, DbType dbType, params Expression<Func<IExpressionPropertyAdapter, IStructureFlag>>[] attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| String | fieldName | Expression field name |
| Expression<Func<IQueryStructureAdapter, TValue>> | expr | Expression |
| DbType | dbType | Expression database type |
| Expression<Func<IExpressionPropertyAdapter, 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!
See Also
| Improve this Doc View SourceExpr<TValue>(String, DataExpressionType, String, DbType, Expression<Func<IExpressionPropertyAdapter, IStructureFlag>>[])
SQL expression mapping
Declaration
TValue Expr<TValue>(string fieldName, DataExpressionType type, string exprText, DbType dbType, params Expression<Func<IExpressionPropertyAdapter, 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<IExpressionPropertyAdapter, 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!
See Also
| Improve this Doc View SourceField<TValue>(Expression<Func<IPropertyMappingAdapter, IStructureFlag>>[])
Field mapping
Declaration
TValue Field<TValue>(params Expression<Func<IPropertyMappingAdapter, IStructureFlag>>[] attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| Expression<Func<IPropertyMappingAdapter, 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!
See Also
| Improve this Doc View SourceField<TValue>(String, String, DbType, Expression<Func<IExpressionPropertyAdapter, IStructureFlag>>[])
Field mapping
Declaration
TValue Field<TValue>(string sourceAlias, string fieldName, DbType dbType, params Expression<Func<IExpressionPropertyAdapter, IStructureFlag>>[] attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| String | sourceAlias | Source alias |
| String | fieldName | Field name |
| DbType | dbType | Field database type |
| Expression<Func<IExpressionPropertyAdapter, IStructureFlag>>[] | attributes | Property mapping attributes |
Returns
| Type | Description |
|---|---|
| TValue | Field value |
Type Parameters
| Name | Description |
|---|---|
| TValue | Field type |
See Also
| Improve this Doc View SourceField<TValue>(String, String, Expression<Func<IPropertyMappingAdapter, IStructureFlag>>[])
Field mapping
Declaration
TValue Field<TValue>(string sourceAlias, string fieldName, params Expression<Func<IPropertyMappingAdapter, IStructureFlag>>[] attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| String | sourceAlias | Source alias |
| String | fieldName | Field name |
| Expression<Func<IPropertyMappingAdapter, 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!
See Also
| Improve this Doc View SourceRef<TValue>(String, String, Expression<Func<IPropertyMappingAdapter, IStructureFlag>>[])
Inner view property reference mapping
Declaration
TValue Ref<TValue>(string sourceAlias, string property, params Expression<Func<IPropertyMappingAdapter, IStructureFlag>>[] attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| String | sourceAlias | Referenced property subquery alias |
| String | property | Referenced property name |
| Expression<Func<IPropertyMappingAdapter, 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!
See Also
| Improve this Doc View SourceRef<TValue, TInnerView>(String, Expression<Func<TInnerView, Object>>, Expression<Func<IPropertyMappingAdapter, IStructureFlag>>[])
Inner view property reference mapping
Declaration
TValue Ref<TValue, TInnerView>(string sourceAlias, Expression<Func<TInnerView, object>> property, params Expression<Func<IPropertyMappingAdapter, IStructureFlag>>[] attributes)
where TInnerView : class
Parameters
| Type | Name | Description |
|---|---|---|
| String | sourceAlias | Referenced property subquery alias |
| Expression<Func<TInnerView, Object>> | property | Referenced property name |
| Expression<Func<IPropertyMappingAdapter, IStructureFlag>>[] | attributes | Property mapping attributes |
Returns
| Type | Description |
|---|---|
| TValue | Referenced property value |
Type Parameters
| Name | Description |
|---|---|
| TValue | Referenced property type |
| TInnerView | Referenced inner view type |
Remarks
WARNING! Can be used in dynamic query mapping only!
See Also
| Improve this Doc View SourceXmlField<TValue>(String, String, String, DbType, Expression<Func<IExpressionPropertyAdapter, IStructureFlag>>[])
XML field mapping
Declaration
TValue XmlField<TValue>(string sourceAlias, string fieldName, string xPath, DbType dbType, params Expression<Func<IExpressionPropertyAdapter, IStructureFlag>>[] attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| String | sourceAlias | XML data source alias |
| String | fieldName | XML field name |
| String | xPath | XML field XPath expression |
| DbType | dbType | XML field database type |
| Expression<Func<IExpressionPropertyAdapter, IStructureFlag>>[] | attributes | Property mapping attributes |
Returns
| Type | Description |
|---|---|
| TValue | Field value |
Type Parameters
| Name | Description |
|---|---|
| TValue | XML Field type |
Remarks
WARNING! Can be used in dynamic query mapping for XmlSource(String, String, String, Expression<Func<IInnerFilterAdapter, IFilterDescription>>[]) data sources only!