Tables - HomeroThompson/firehawk GitHub Wiki

Tables

The mapping of the domain model to a relational database schema produces a set of tables that represent the entities, components and relationships of such domain. Firehawk lets you select the casing convention used to format all the table names. These are the available conventions:

Default

The table names are generated according the name of the objetct being mapped, without any casing modification. This is the default behavior so there is no need to set this value explicitly.

.ConfigureNamingConventions()
    .UseConventionForTableNames(TablesNamingConvention.Default)
.EndConfig()
PascalCase

The table names are generated using the Pascal Case convention.

.ConfigureNamingConventions()
    .UseConventionForTableNames(TablesNamingConvention.PascalCase)
.EndConfig()
CamelCase

The table names are generated using the Camel Case convention.

.ConfigureDatabaseConventions()
    .UseConventionForTableNames(TablesNamingConvention.CamelCase)
.EndConfig()
Uppercase

The table names are generated using the uppercase convention and the underscore character as word separator.

.ConfigureNamingConventions()
    .UseConventionForTableNames(TablesNamingConvention.Uppercase)
.EndConfig()
Lowercase

The table names are generated using the lowercase convention and the underscore character as word separator.

.ConfigureNamingConventions()
    .UseConventionForTableNames(TablesNamingConvention.Lowercase)
.EndConfig()
Custom

The table names are generated by an user-defined function. This function receives as input parameter the type of the object being mapped and returns the table name.

.ConfigureNamingConventions()
    .UseCustomConventionForTableNames(t => 
    {

    });
.EndConfig()