Class SqlTableAttribute
Maps a class or interface to a database table, overriding the table name that would otherwise be derived from the CLR type name.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Interface, AllowMultiple = false)]
public class SqlTableAttribute : Attribute
- Inheritance
-
SqlTableAttribute
- Inherited Members
- Extension Methods
Constructors
SqlTableAttribute(string)
Initializes a new instance of the SqlTableAttribute class.
public SqlTableAttribute(string name)
Parameters
namestringThe database table name to use for the annotated type.
Properties
Name
The database table name for the annotated type.
public string Name { get; }