1.2.1
API updates/corrections
- AutoModelBuilder functions now in clearly divided domains and order:
- Alterations (modify the AutoModelBuilder instance prior to model building)
- Entities (discovered by conventions and added singularly)
- Conventions (alter ModelBuilder after entities have been added)
- Overrides (alter individual entities after conventions have been applied)
- API syntax has been updated as well:
- AddAlterations
- AddEntities*
- UseConventions*
- UseOverrides*
- New API function
AddFromAssembly(Assembly)- which is a shorthand for adding all alterations, entities, conventions, and overrides, using a single command.AddFromAssemblyOf(Type),AddFromAssemblyOf<T>(),AddFromAssemblies(IEnumerable<Assembly>)- as above
- New package: FluentModelBuilder.Relational
- Contains two conventions that can be added, either on their own, or by including the assembly of one of them in the search:
DecimalPropertyConvention- allows you to specify the length of decimal types for relational databasesPluralizingTableNameGeneratingConvention- makes your table names plural (by default they are as-is), using Humanizer. You can use your ownITableNameGeneratorwithTableNameGeneratingConventionif you want to use something else.
- Contains two conventions that can be added, either on their own, or by including the assembly of one of them in the search: