Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

options to transform between DataTypeAttribute(DataType.Date) and DateOnly #115

Open
zijianhuang opened this issue Feb 4, 2022 · 1 comment

Comments

@zijianhuang
Copy link
Owner

If the property is DateOnly, option to generate to DateTimeOffset with DataTypeAttribute(DataType.Date).

DateOnlyToDateTimeOffset, default is false.

If the property is DateTime or DateTimeOffset decorated by DataTypeAttribute(DataType.Date), option to generate to DateOnly or the same data type with DataTypeAttribute(DataType.Date).

DateTypeDateToDateOnly, default is true.

@zijianhuang
Copy link
Owner Author

Although technically I could do something inside class Poco2CsGen, however, probably not so worthy since .NET Framework will be fade out. Adding extra check before adding type reference is not worthy. I may just use a PS script to replace "public DateOnly" with "DataTypeAttribute(DataType.Date) public DateTimeOffset".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant