-
-
Notifications
You must be signed in to change notification settings - Fork 535
CSharpGenerator
Rico Suter edited this page May 7, 2016
·
11 revisions
Package: NJsonSchema.CodeGeneration
The CSharpGenerator
class generates C# DTO classes from a given JSON Schema:
var schema = JsonSchema4.FromType<Person>();
var settings = new CSharpGeneratorSettings();
var generator = new CSharpGenerator(schema, settings);
var code = generator.GenerateFile();
- Namespace
- RequiredPropertiesMustBeDefined (default: true)
- DateTimeType (default: DateTime)
- ArrayType (default: ObservableCollection)
- DictionaryType (default: Dictionary)
- ClassStyle: Inpc (default) | Poco
More information: CSharpGeneratorSettings.cs