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

Add support for .Net 6 BCL DateOnly and TimeOnly #22

Closed
dxrdxr opened this issue Oct 8, 2021 · 1 comment
Closed

Add support for .Net 6 BCL DateOnly and TimeOnly #22

dxrdxr opened this issue Oct 8, 2021 · 1 comment

Comments

@dxrdxr
Copy link
Contributor

dxrdxr commented Oct 8, 2021

.Net 6 Preview 4 adds support for 2 new BCL structures: DateOnly and TimeOnly

DateOnly maps very close to Edm.Date, the only exception is that DateOnly range is only 0-9999 CE, while Edm.Date is -9999-9999.

TimeOnly maps very close to Edm.TimeOfDay, except that the fractionalSeconds has different precision.

The Convention Builder should recognize these types and map them accordingly.

Note: EF Core 6 does not yet map these types to SQL Server, it is expected in EF Core 7?

dxrdxr added a commit to dxrdxr/ModelBuilder that referenced this issue Oct 25, 2021
dxrdxr added a commit to dxrdxr/ModelBuilder that referenced this issue Oct 28, 2021
@dxrdxr
Copy link
Contributor Author

dxrdxr commented Jan 27, 2022

Fixed in Commit 024afcb

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