Class XDataMapping
Inherited Members
Namespace: XData.Mapping.Dynamic
Assembly: XData.docfx.dll
Syntax
public static class XDataMapping
Methods
| Improve this Doc View SourceCustomMapping<T>()
Returns dynamic repository structure
Declaration
public static IRepositoryStructure<T> CustomMapping<T>()
where T : class, ISqlObject, new()
Returns
| Type | Description |
|---|---|
| IRepositoryStructure<T> | Dynamic query structure |
Type Parameters
| Name | Description |
|---|---|
| T | Repository element mapped type |
Exceptions
| Type | Condition |
|---|---|
| XDataRuntimeException |
See Also
| Improve this Doc View SourceGetStructure()
Returns dynamic query structure
Declaration
public static IQueryStructure GetStructure()
Returns
| Type | Description |
|---|---|
| IQueryStructure | Dynamic query structure |
See Also
| Improve this Doc View SourceGetStructure(String)
Returns dynamic query structure
Declaration
public static IQueryStructure GetStructure(string baseTableAlias)
Parameters
| Type | Name | Description |
|---|---|---|
| String | baseTableAlias | Base table alias |
Returns
| Type | Description |
|---|---|
| IQueryStructure | Dynamic query structure |
See Also
| Improve this Doc View SourceGetStructure(String, String, DataStructureFlag, Variable[])
Returns dynamic query structure
Declaration
public static IQueryStructure GetStructure(string baseTableAlias, string context, DataStructureFlag flags = DataStructureFlag.ReadOnly, params Variable[] variables)
Parameters
| Type | Name | Description |
|---|---|---|
| String | baseTableAlias | Base table alias |
| String | context | Context name |
| DataStructureFlag | flags | Data object flags |
| Variable[] | variables | Variables |
Returns
| Type | Description |
|---|---|
| IQueryStructure | Dynamic query structure |
See Also
| Improve this Doc View SourceGetStructure(String, DataStructureFlag)
Returns dynamic query structure
Declaration
public static IQueryStructure GetStructure(string baseTableAlias, DataStructureFlag flags)
Parameters
| Type | Name | Description |
|---|---|---|
| String | baseTableAlias | Base table alias |
| DataStructureFlag | flags | Data object flags |
Returns
| Type | Description |
|---|---|
| IQueryStructure | Dynamic query structure |
See Also
| Improve this Doc View SourceGetStructure<T>(String)
Returns dynamic query structure based on static mapping
Declaration
public static IQueryStructure GetStructure<T>(string context = null)
where T : class, IDataObject, new()
Parameters
| Type | Name | Description |
|---|---|---|
| String | context | Context name |
Returns
| Type | Description |
|---|---|
| IQueryStructure | Dynamic query structure |
Type Parameters
| Name | Description |
|---|---|
| T |
See Also
| Improve this Doc View SourceUseMapping<T>()
Returns dynamic repository inherited structure
Declaration
public static IInheritedStructure<T> UseMapping<T>()
where T : class, ISqlObject, new()
Returns
| Type | Description |
|---|---|
| IInheritedStructure<T> | Dynamic query structure |
Type Parameters
| Name | Description |
|---|---|
| T | Repository element mapped type |
Exceptions
| Type | Condition |
|---|---|
| XDataRuntimeException |
See Also
| Improve this Doc View SourceUseMapping<T>(Expression<Func<IExternalLinkDefinitionAdapter<T>, IExternalLinkDefinition>>[])
Returns dynamic repository inherited structure
Declaration
public static IRepositoryDescription<T> UseMapping<T>(params Expression<Func<IExternalLinkDefinitionAdapter<T>, IExternalLinkDefinition>>[] externalLinks)
where T : class, ISqlObject, new()
Parameters
| Type | Name | Description |
|---|---|---|
| Expression<Func<IExternalLinkDefinitionAdapter<T>, IExternalLinkDefinition>>[] | externalLinks |
Returns
| Type | Description |
|---|---|
| IRepositoryDescription<T> | Dynamic query structure |
Type Parameters
| Name | Description |
|---|---|
| T | Repository element mapped type |
Exceptions
| Type | Condition |
|---|---|
| XDataRuntimeException |
See Also
| Improve this Doc View SourceUseMapping<T, TParent>()
Returns dynamic repository inherited structure
Declaration
public static IInheritedStructure<T> UseMapping<T, TParent>()
where T : class, ISqlObject, new()
where TParent : class, ISqlObject, new()
Returns
| Type | Description |
|---|---|
| IInheritedStructure<T> | Dynamic query structure |
Type Parameters
| Name | Description |
|---|---|
| T | Repository element mapped type |
| TParent | Parent mapping structure type |
Exceptions
| Type | Condition |
|---|---|
| XDataRuntimeException |
See Also
| Improve this Doc View SourceUseMapping<T, TParent>(Expression<Func<IExternalLinkDefinitionAdapter<T>, IExternalLinkDefinition>>[])
Returns dynamic repository inherited structure
Declaration
public static IRepositoryDescription<T> UseMapping<T, TParent>(params Expression<Func<IExternalLinkDefinitionAdapter<T>, IExternalLinkDefinition>>[] externalLinks)
where T : class, TParent, new()
where TParent : class, ISqlObject, new()
Parameters
| Type | Name | Description |
|---|---|---|
| Expression<Func<IExternalLinkDefinitionAdapter<T>, IExternalLinkDefinition>>[] | externalLinks |
Returns
| Type | Description |
|---|---|
| IRepositoryDescription<T> | Dynamic query structure |
Type Parameters
| Name | Description |
|---|---|
| T | Repository element mapped type |
| TParent | Parent mapping structure type |
Exceptions
| Type | Condition |
|---|---|
| XDataRuntimeException |