Columns - HomeroThompson/firehawk GitHub Wiki

Columns

Firehawks lets you customize the way columns names are generated by providing a set of naming conventions. These conventions apply for all columns in the resulting database and are meant to unify the casing convention for all the column names.

Below is the set of conventions used when generating the standard column names:

Default

The column names are generated based on the property names without any modification. This is the default convention so you don't need to set this value explicitly.

.ConfigureNamingConventions()
    .UseConventionForColumnNames(ColumnsNamingConvention.Default)
.EndConfig()
PascalCase

The column names are generated using the Pascal Case convention.

.ConfigureNamingConventions()
    .UseConventionForColumnNames(ColumnsNamingConvention.PascalCase)
.EndConfig()
CamelCase

The column names are generated using the Camel Case convention.

.ConfigureNamingConventions()
    .UseConventionForColumnNames(ColumnsNamingConvention.CamelCase)
.EndConfig()
Uppercase

The column names are generated using the uppercase casing convention and the underscore character as a word separator.

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

The column names are generated using the lowercase casing convention and the underscore character as a word separator.

.ConfigureDatabaseConventions()
    .UseConventionForColumnNames(ColumnsNamingConvention.Default)
.EndConfig()
Custom

The column names are generated by an user-defined function. This function receives as input parameter the property member info and should return the resulting table name.

.ConfigureNamingConventions()
    .UseCustomConventionForColumnNames(m => 
    {

    })
.EndConfig()