Skip to content

Release notes for Dapper.FastCrud.ModelGenerator

MoonStorm edited this page Jun 3, 2024 · 4 revisions

Dapper.FastCrud.ModelGenerator

Known Issues:

  • It is currently impossible to run the T4 generator under Rider (see https://youtrack.jetbrains.com/issue/RIDER-112510). Visual Studio 2022 seems to be running fine for the time being, however the support for T4 templates is dwindling in there as well.
    It's very difficult to maintain the generator in the current form, reason why we might be looking at dropping this feature soon. We recommend switching to a code-first approach, the cleaner and most intuitive way to describe your entities out of all the methods we support.

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 (compatible only with projects targeting .NET6 and above).
  • 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.