All Downloads are FREE. Search and download functionalities are using the official Maven repository.

aspnet-fastendpoints.modelRecord.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
/// 
/// {{description}}
/// 
public record {{classname}}({{#requiredVars}}{{#isEnum}}{{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}{{/isEnum}}{{^isEnum}}{{{dataType}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}{{/isEnum}}{{^-last}},{{/-last}}{{/requiredVars}}) {{#parent}}: {{{.}}}{{/parent}}
{
{{#optionalVars}}
    public {{#isEnum}}{{{datatypeWithEnum}}}{{#isNullable}}?{{/isNullable}} {{name}} {get; init; }{{#defaultValue}} = {{{.}}};{{/defaultValue}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{#isNullable}}?{{/isNullable}} {{name}} {get; init; }{{#defaultValue}} = {{{.}}};{{/defaultValue}}{{/isEnum}}
{{/optionalVars}}
{{#vars}}
    {{#isEnum}}{{^complexType}}{{>enumClass}}{{/complexType}}
{{/isEnum}}
{{/vars}}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy