Skip to content

Release notes for Dapper.FastCrud.ModelGenerator

MoonStorm edited this page Jun 3, 2024 · 4 revisions

Dapper.FastCrud.ModelGenerator

3.3

  • An opt-in flag was added for generating schema decorated entities.
  • Several problems involving schemas were fixed (e.g. identical table names in separate schemas, relationships, general metadata extraction).
  • Parent entity properties are now generated as nullable.
  • Added support for TimeOnly and DateOnly.
  • Added warning suppressions for non-nullable properties.
  • Customizable entity class modifiers.
  • Customizable entity property modifiers.

3.0

  • [Breaking change] Support for composite primary keys.
  • [Breaking change] Added support for self referenced entities.
  • [Breaking change] Added support for multiple references to the same target using the InverseProperty attribute.
  • [Breaking change] Better handling of columns representing reserved keywords in C#.
  • Support for new csproj style projects.
  • Fixed a problem preventing it from being used in VS2019 and later.

2.4.1

  • @ is now added to property names matching keywords or digits.

2.4.0

  • Added support for relationships.

2.3.2

  • CRLF fixed in the model generator.

2.3.1

  • BREAKING CHANGE: the logic for marking properties with DatabaseGeneratedAttribute has changed. Please check the docs.
  • BREAKING CHANGE: a proprietary DatabaseGeneratedDefaultValueAttribute was introduced, however this must be enabled in the template. Note that this is a Dapper.FastCrud library feature only.
  • BREAKING CHANGE: primary keys having their values generated via newid() are marked with DatabaseGenerated(DatabaseGeneratedOption.Identity) in case the generation of the proprietary attribute is turned off.
  • compatible with any 2.3.x version of Dapper.FastCrud.

2.1.0

  • compatible with any 2.0.x, 2.1.x or 2.2.x version of Dapper.FastCrud.