microsoft / dtdl-model-generator

A library used for generating C# classes from DTDL interfaces.
MIT License
13 stars 16 forks source link

[Feature]: Support for date primitive type #17

Closed JMayrbaeurl closed 1 year ago

JMayrbaeurl commented 2 years ago

Is your feature request related to a problem? Please describe.

No

Describe the feature

The model generator should be able to map the date primitive type in DTDL to a C# type

Additional context, alternatives considered, etc.

No response

chpence commented 2 years ago

With the advent of DateOnly being a supported type (since .NET 6), we should create a mapping from the date DTDL type to this type.