Company
Date Published
Author
Robert Linde
Word count
751
Language
English
Hacker News points
None

Summary

In this article, the author discusses a new tool available for .NET developers that helps create strongly-typed C# classes directly from their Contentful content model, eliminating the need to write boilerplate code. The tool leverages the "global tools" feature in .NET Core 2.1 and can be installed using the dotnet tool install command. Once installed, users can run commands such as `contentful.modelscreator.cli --help` to list available options, including specifying a namespace or path for generated classes. The tool automatically resolves field types and names properties according to Contentful's field id and validation rules. Additionally, it is available as a plugin in Visual Studio and Visual Studio Code, allowing users to create models from their content model with minimal command-line interaction.