Skip to content

Unable to get primitive types in C# #1

@franckleveque

Description

@franckleveque

Hi,
Thanks for your great work,
However, I'm unable to get primitive types for C# (I'm currently using a database model)

the construct I use is :

$env.setLanguage('C#')
#foreach( $attribute in $entity.attributes )
public ${attribute.type} ${attribute.name}
#end

I have also tried .fullType, .simpleType, none worked. They are always translated as object types.

ie :
public Int32 Id
public String Label

whereas I would like to generate :
public int Id
public string Label

Is there something I'm missing ?
Thanks in advance,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions