Attributes - activa/iridium GitHub Wiki

###Table attributes

#####[Table.Name]

Usages:

  • [Table.Name(tableName)]

Defines the name of the table for storing records of this type. If omitted the class name will be used.

###Field attributes

#####[Column.Name]

Usages:

  • [Column.Name(columnName)]

Defines the name of the column in the database. If omitted, the field name will be used.

#####[Column.PrimaryKey]

Usages:

  • [Column.PrimaryKey]
  • [Column.PrimaryKey(AutoIncrement=true|false)]

Defines the primary key field for the class. When used with AutoIncrement=true, the primary key will be incremented for each inserted record in the database. AutoIncrement can be set to false to override behavior of the naming convention (see Naming Conventions)

#####[Column.Ignore]

Usages:

  • [Column.Ignore]

Tells the ORM not to map the field to a column in the database

WORK IN PROGRESS - TO BE COMPLETED