Skip to content

10.1.0

Choose a tag to compare

@pokornyd pokornyd released this 21 Apr 11:32
· 4 commits to master since this release

Kontent.ai model generator for .NET 10.1.0

This is a minor release that adds the ContentTypeCodename property and fixes the base class parameter to generate records instead of classes.

For details on v10 changes, see the 10.0.0 release notes.

New features

  • ContentTypeCodename property — each generated record now includes an expression-bodied ContentTypeCodename property for accessing the content type codename directly without reflection
  • Collision handling — elements whose codename would collide with the built-in ContentTypeCodename property or constant (e.g., content_type_codename, content_type) are automatically prefixed with _ to avoid conflicts

Fixes

  • --baseClass renamed to --baseRecord — the previous --baseClass parameter generated a base class, but since models are now records, this caused a compilation error. The parameter now generates a base record. --baseClass (-b) still works as an obsolete alias. A new -r short key was added as an alternative.

What's Changed

  • Add missing type codename, fix baseClass behavior by @pokornyd in #202

Full Changelog: 10.0.0...10.1.0