Class TableAttribute
Class TableAttribute. This attribute can be used to decorate a class and identify the table properties for the data contract. This class cannot be inherited.
Inheritance
System.Object
System.Attribute
TableAttribute
Inherited Members
System.Attribute.Equals(System.Object)
System.Attribute.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: spyderSoft.DataLayer.Core.Attributes
Assembly: spyderSoft.DataLayer.Core.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class TableAttribute : Attribute
Constructors
| Improve this Doc View SourceTableAttribute(String)
Initializes a new instance of the TableAttribute class.
Declaration
public TableAttribute(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the table which maps to the decorated class. |
Properties
| Improve this Doc View SourceName
Gets or sets the name of the table which maps to the decorated class.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the table which maps to the decorated class. |