Specifies the name of the database table associated with a class.
- Namespace
- DbSyncKit
.DB .Attributes - Base Types
-
- Attribute
Syntax
[AttributeUsage(AttributeTargets.Class)]
public class TableNameAttribute : AttributeRemarks
This attribute can be applied to classes to indicate the name of the corresponding
database table. It is used to associate a class with a specific table in database operations.
Attributes
| Type | Description |
|---|---|
| AttributeUsage |
Constructors
| Name | Summary |
|---|---|
| TableNameAttribute |
Initializes a new instance of the TableNameAttribute class.
|
Properties
| Name | Property Type | Summary |
|---|---|---|
| TableName | string |
Gets the name of the database table.
|