Class DataTableAttribute
Data object table attribute
Inherited Members
Namespace: XData.Mapping
Assembly: XData.docfx.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class DataTableAttribute : DataSourceAttribute
Constructors
| Improve this Doc View SourceDataTableAttribute(String, String)
Data object table attribute
Declaration
public DataTableAttribute(string name, string alias)
Parameters
Type | Name | Description |
---|---|---|
String | name | Table name |
String | alias | Table alias |
Exceptions
Type | Condition |
---|---|
ArgumentException | Table alias cannot be null or empty string |
XDataRuntimeException | Data table alias is null or empty. |
Properties
| Improve this Doc View SourceAlias
Table alias
Declaration
public override string Alias { get; protected set; }
Property Value
Type | Description |
---|---|
String |
Overrides
| Improve this Doc View SourceName
Table name
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
Parent
Parent table alias
Declaration
public string Parent { get; set; }
Property Value
Type | Description |
---|---|
String |
Remarks
Tables supporting updates mast be organized in update hierarchy linked by ParentAlias.
Root table of update hierarchy is the data object base source (see BaseSource)
See Also
| Improve this Doc View SourceType
Data source type
Declaration
public override DataSourceType Type { get; }
Property Value
Type | Description |
---|---|
DataSourceType | Table |
Overrides
| Improve this Doc View SourceTypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
Declaration
public override object TypeId { get; }
Property Value
Type | Description |
---|---|
Object | An Object that is a unique identifier for the attribute. |