Class TableNameAttribute
Overrides the table name used when mapping a class to a database table.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class TableNameAttribute : Attribute, _Attribute
- Inheritance
-
TableNameAttribute
- Implements
- Inherited Members
Constructors
TableNameAttribute(string)
Initializes a new instance of TableNameAttribute with the specified table name.
public TableNameAttribute(string name)
Parameters
namestringThe table name to use in the database.
Properties
Name
The table name to use in the database.
public string Name { get; set; }