Interface IRepositoryStructureAdapter<T>
Repository structure mapping adapter interface
Inherited Members
Namespace: XData.Mapping.Dynamic
Assembly: XData.docfx.dll
Syntax
public interface IRepositoryStructureAdapter<T> : IRepositoryStructureAdapter where T : class, ISqlObject, new()
Type Parameters
| Name | Description |
|---|---|
| T |
Methods
| Improve this Doc View SourceField<TValue>(Expression<Func<IRepositoryPropertyMappingAdapter<T, TValue>, IStructureFlag>>[])
Field mapping
Declaration
TValue Field<TValue>(params Expression<Func<IRepositoryPropertyMappingAdapter<T, TValue>, IStructureFlag>>[] attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| Expression<Func<IRepositoryPropertyMappingAdapter<T, TValue>, 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, Expression<Func<IRepositoryPropertyMappingAdapter<T, TValue>, IStructureFlag>>[])
Field mapping
Declaration
TValue Field<TValue>(string fieldName, params Expression<Func<IRepositoryPropertyMappingAdapter<T, TValue>, IStructureFlag>>[] attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| String | fieldName | Field name |
| Expression<Func<IRepositoryPropertyMappingAdapter<T, TValue>, 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, Expression<Func<IRepositoryPropertyMappingAdapter<T, TValue>, IStructureFlag>>[])
Field mapping
Declaration
TValue Field<TValue>(string sourceAlias, string fieldName, params Expression<Func<IRepositoryPropertyMappingAdapter<T, TValue>, IStructureFlag>>[] attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| String | sourceAlias | Source alias |
| String | fieldName | Field name |
| Expression<Func<IRepositoryPropertyMappingAdapter<T, TValue>, 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 SourceLink<TValue, TSource>(String, Expression<Func<ILinkPropertyMappingAdapter<T>, IStructureFlag>>[])
Link property mapping
Declaration
Link<TValue, TSource> Link<TValue, TSource>(string sourceAlias, params Expression<Func<ILinkPropertyMappingAdapter<T>, IStructureFlag>>[] attributes)
where TValue : IComparable<TValue> where TSource : class, IDataObject, new()
Parameters
| Type | Name | Description |
|---|---|---|
| String | sourceAlias | Property source alias |
| Expression<Func<ILinkPropertyMappingAdapter<T>, IStructureFlag>>[] | attributes | Property mapping attributes |
Returns
| Type | Description |
|---|---|
| Link<TValue, TSource> | Link property |
Type Parameters
| Name | Description |
|---|---|
| TValue | Link value type |
| TSource | Link source type |
Link<TValue, TSource>(String, String, Expression<Func<ILinkPropertyMappingAdapter<T>, IStructureFlag>>[])
Link property mapping
Declaration
Link<TValue, TSource> Link<TValue, TSource>(string sourceAlias, string fieldName, params Expression<Func<ILinkPropertyMappingAdapter<T>, IStructureFlag>>[] attributes)
where TValue : IComparable<TValue> where TSource : class, IDataObject, new()
Parameters
| Type | Name | Description |
|---|---|---|
| String | sourceAlias | Property source alias |
| String | fieldName | Property field name |
| Expression<Func<ILinkPropertyMappingAdapter<T>, IStructureFlag>>[] | attributes | Property mapping attributes |
Returns
| Type | Description |
|---|---|
| Link<TValue, TSource> | Link property |
Type Parameters
| Name | Description |
|---|---|
| TValue | Link value type |
| TSource | Link source type |
Lob(String, Expression<Func<IRepositoryReadOnlyPropertyMappingAdapter, IStructureFlag>>[])
Lob property mapping
Declaration
Lob Lob(string sourceAlias, params Expression<Func<IRepositoryReadOnlyPropertyMappingAdapter, IStructureFlag>>[] attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| String | sourceAlias | Property source alias |
| Expression<Func<IRepositoryReadOnlyPropertyMappingAdapter, IStructureFlag>>[] | attributes | Property mapping attributes |
Returns
| Type | Description |
|---|---|
| Lob | Lob property |
Lob(String, String, Expression<Func<IRepositoryReadOnlyPropertyMappingAdapter, IStructureFlag>>[])
Lob property mapping
Declaration
Lob Lob(string sourceAlias, string fieldName, params Expression<Func<IRepositoryReadOnlyPropertyMappingAdapter, IStructureFlag>>[] attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| String | sourceAlias | Property source alias |
| String | fieldName | Property field name |
| Expression<Func<IRepositoryReadOnlyPropertyMappingAdapter, IStructureFlag>>[] | attributes | Property mapping attributes |
Returns
| Type | Description |
|---|---|
| Lob | Lob property |
Xml(String, Expression<Func<IRepositoryReadOnlyPropertyMappingAdapter, IStructureFlag>>[])
Xml property mapping
Declaration
Xml Xml(string sourceAlias, params Expression<Func<IRepositoryReadOnlyPropertyMappingAdapter, IStructureFlag>>[] attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| String | sourceAlias | Property source alias |
| Expression<Func<IRepositoryReadOnlyPropertyMappingAdapter, IStructureFlag>>[] | attributes | Property mapping attributes |
Returns
| Type | Description |
|---|---|
| Xml | Xml property |
Xml(String, String, Expression<Func<IRepositoryReadOnlyPropertyMappingAdapter, IStructureFlag>>[])
Xml property mapping
Declaration
Xml Xml(string sourceAlias, string fieldName, params Expression<Func<IRepositoryReadOnlyPropertyMappingAdapter, IStructureFlag>>[] attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| String | sourceAlias | Property source alias |
| String | fieldName | Property field name |
| Expression<Func<IRepositoryReadOnlyPropertyMappingAdapter, IStructureFlag>>[] | attributes | Property mapping attributes |
Returns
| Type | Description |
|---|---|
| Xml | Xml property |