Skip to content

TableAttribute Constructors ​

Definition ​

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Overloads ​

NameDescription
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 ​

NameDescription
nameThe 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 ​

NameDescription
nameThe database table name to associate with the decorated class.
schemaThe 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 ​

NameDescription
nameThe current database table name to associate with the decorated class.
renamedFromThe previous database table name for this table, typically used to support rename-aware schema reconciliation or migration logic.
schemaThe 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.