Appearance
TableAttribute Constructors
Definition
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Overloads
| Name | Description |
|---|---|
TableAttribute() | Initializes a new instance of the TableAttribute class. |
TableAttribute(string name) | Initializes a new instance of the TableAttribute class using the specified table name. |
TableAttribute(string name, string schema) | Initializes a new instance of the TableAttribute class using the specified table name and schema. |
TableAttribute(string name, string schema, string renamedFrom) | Initializes a new instance of the TableAttribute class using the specified table name, schema, and prior table name. |
TableAttribute()
csharp
TableAttribute()Initializes a new instance of the TableAttribute class.
Remarks
Use this overload when the class should be treated as a database table for reflection and schema processing, but the table name and schema will be resolved by convention or other mapping rules.
TableAttribute(string name)
csharp
TableAttribute(string name)Initializes a new instance of the TableAttribute class using the specified table name.
Parameters
| Name | Description |
|---|---|
name | The database table name to associate with the decorated class. |
Remarks
The schema will remain unspecified and may be resolved by convention, connection defaults, or other mapping metadata.
TableAttribute(string name, string schema)
csharp
TableAttribute(string name, string schema)Initializes a new instance of the TableAttribute class using the specified table name and schema.
Parameters
| Name | Description |
|---|---|
name | The database table name to associate with the decorated class. |
schema | The database schema containing the table. |
TableAttribute(string name, string schema, string renamedFrom)
csharp
TableAttribute(string name, string schema, string renamedFrom)Initializes a new instance of the TableAttribute class using the specified table name, schema, and prior table name.
Parameters
| Name | Description |
|---|---|
name | The current database table name to associate with the decorated class. |
renamedFrom | The previous database table name for this table, typically used to support rename-aware schema reconciliation or migration logic. |
schema | The database schema containing the table. |
Remarks
Use renamedFrom when the mapped table should be renamed and reconciliation tooling should recognize the prior name rather than treating it as a new table.