Class DataObjectAttribute
Data object metadata attribute
Inherited Members
Namespace: XData.Mapping
Assembly: XData.docfx.dll
Syntax
[AttributeUsage(AttributeTargets.Class)]
public sealed class DataObjectAttribute : Attribute
Remarks
WARNING! Required attribute!
Constructors
| Improve this Doc View SourceDataObjectAttribute(String)
Data object metadata attribute
Declaration
public DataObjectAttribute(string baseSource = "")
Parameters
| Type | Name | Description |
|---|---|---|
| String | baseSource | Base table alias |
Remarks
If Base table is empty - data object has no base table.
WARNING! None based data objects are read only and can not contain any table!
DataObjectAttribute(Type)
Data object metadata attribute
Declaration
public DataObjectAttribute(Type baseMappingType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | baseMappingType | Base mapping type |
Properties
| Improve this Doc View SourceBaseMappingType
Base mapping type
Declaration
public Type BaseMappingType { get; }
Property Value
| Type | Description |
|---|---|
| Type |
BaseSource
Base table alias
Declaration
public string BaseSource { get; }
Property Value
| Type | Description |
|---|---|
| String |
Remarks
Base table is modification allowed data source subtree root of data object
See Also
| Improve this Doc View SourceContext
Context alias
Declaration
public string Context { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
See Also
| Improve this Doc View SourceDistinct
Distinct flag
Declaration
public bool Distinct { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Flags
Combination of DataObjectFlag values
Declaration
public DataStructureFlag Flags { get; set; }
Property Value
| Type | Description |
|---|---|
| DataStructureFlag |
See Also
| Improve this Doc View SourceLimit
Limit records
Declaration
public int Limit { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
LogicAssemblyNames
Data logic assembly name
Declaration
public string[] LogicAssemblyNames { get; set; }
Property Value
| Type | Description |
|---|---|
| String[] |
Remarks
NOTE: Used when no IoC Container available. Otherwise register logic modules through container
See Also
IDataLogic<T>
Skip
Skip records
Declaration
public int Skip { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |