Skip to content

TableAttribute Class ​

Definition ​

Identifies a class as representing a database table and optionally supplies the explicit table name and schema to use for database mapping.

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

Constructors ​

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.

Properties ​

NameDescription
CommentGets or sets an optional SQL comment / description for the mapped table.
FillFactorGets or sets an optional Postgres table storage fill factor (typically 10–100).
NameGets the explicit database table name associated with the decorated class.
RenamedFromGets the previous database table name associated with the decorated class.
SchemaGets the explicit database schema associated with the decorated class.

Remarks ​

This attribute serves two purposes:

It marks a class for discovery during schema reflection, reconciliation, and migration processing.

It provides explicit table metadata, allowing the mapped table name and schema to be defined rather than resolved by naming convention.

When no values are supplied, the presence of the attribute indicates that the type should still be treated as a database table, with the final table name and schema resolved by convention or other metadata.