Interface IRepositoryStructureAdapter
Repository structure adapter
Namespace: XData.Mapping.Dynamic
Assembly: XData.docfx.dll
Syntax
public interface IRepositoryStructureAdapter
Methods
| Improve this Doc View SourceExpr<TValue>(String, Expression<Func<IQueryStructureAdapter, TValue>>, DbType, Expression<Func<IRepositoryExpressionMappingAdapter, IStructureFlag>>[])
SQL expression mapping
Declaration
TValue Expr<TValue>(string fieldName, Expression<Func<IQueryStructureAdapter, TValue>> expr, DbType dbType, params Expression<Func<IRepositoryExpressionMappingAdapter, IStructureFlag>>[] attributes)
Parameters
Type | Name | Description |
---|---|---|
String | fieldName | Expression field name |
Expression<Func<IQueryStructureAdapter, TValue>> | expr | Expression |
DbType | dbType | Expression database type |
Expression<Func<IRepositoryExpressionMappingAdapter, 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<IRepositoryExpressionMappingAdapter, IStructureFlag>>[])
SQL expression mapping
Declaration
TValue Expr<TValue>(string fieldName, DataExpressionType type, string exprText, DbType dbType, params Expression<Func<IRepositoryExpressionMappingAdapter, 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<IRepositoryExpressionMappingAdapter, 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 SourceRef<TValue>(String, String, Expression<Func<IRepositoryReadOnlyPropertyMappingAdapter, IStructureFlag>>[])
Inner view property reference mapping
Declaration
TValue Ref<TValue>(string sourceAlias, string property, params Expression<Func<IRepositoryReadOnlyPropertyMappingAdapter, IStructureFlag>>[] attributes)
Parameters
Type | Name | Description |
---|---|---|
String | sourceAlias | Referenced property subquery alias |
String | property | Referenced property name |
Expression<Func<IRepositoryReadOnlyPropertyMappingAdapter, 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<IRepositoryReadOnlyPropertyMappingAdapter, IStructureFlag>>[])
Inner view property reference mapping
Declaration
TValue Ref<TValue, TInnerView>(string sourceAlias, Expression<Func<TInnerView, object>> property, params Expression<Func<IRepositoryReadOnlyPropertyMappingAdapter, 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<IRepositoryReadOnlyPropertyMappingAdapter, 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!