aspnet-fastendpoints.modelClass.mustache Maven / Gradle / Ivy
///
/// {{description}}
///
public class {{classname}} {{#parent}}: {{{.}}}{{/parent}}
{
{{#vars}}
{{#isEnum}}{{^complexType}}{{>enumClass}}{{/complexType}}
{{/isEnum}}
{{#isEnum}}
public {{{datatypeWithEnum}}}{{#isNullable}}?{{/isNullable}} {{name}} { get; set; }{{#defaultValue}} = {{{.}}};{{/defaultValue}}
{{/isEnum}}
{{^isEnum}}
public {{{dataType}}}{{#nullableReferenceTypes}}{{^isContainer}}{{^required}}{{^isNullable}}?{{/isNullable}}{{/required}}{{/isContainer}}{{/nullableReferenceTypes}} {{name}} { get; set; }{{#defaultValue}} = {{{.}}};{{/defaultValue}}
{{/isEnum}}
{{/vars}}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy