kontent-ai / model-generator-net

Kontent.ai .NET model generator.
https://www.nuget.org/packages/Kontent.Ai.ModelGenerator
MIT License
17 stars 19 forks source link

Suggestions for more conventions conform CustomTypeProvider generation and for more clean domain models generation. #114

Closed MiroKentico closed 3 years ago

MiroKentico commented 3 years ago
  1. In class TypeProviderCodeGenerator, there should be updated output file template. By convensions, static readonly property _codenames in protected static readonly Dictionary<Type, string> _codenames should have been named Codenames.
  2. I cleaned up unused usings in boilerplate repository. That has been done in commit https://github.com/Kentico/kontent-boilerplate-net/commit/358fb338ae3af96be0f3bfe6740114b00ba6fc5a. From what I know, model files like AboutUs.cs in mentioned commit are also generated by kontent-generators-net, at least for the first time, when these are not present yet. I suggest, that these unused usings are not generated anymore.