Skip to content

1.2.1

Choose a tag to compare

@Grinderofl Grinderofl released this 02 Jul 12:03
· 20 commits to release since this release

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 databases
      • PluralizingTableNameGeneratingConvention - makes your table names plural (by default they are as-is), using Humanizer. You can use your own ITableNameGenerator with TableNameGeneratingConvention if you want to use something else.