Skip to content
New issue

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

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

Already on GitHub? # to your account

Add support for DateOnly and TimeOnly types #24979

Closed
JohnyL opened this issue May 26, 2021 · 2 comments
Closed

Add support for DateOnly and TimeOnly types #24979

JohnyL opened this issue May 26, 2021 · 2 comments

Comments

@JohnyL
Copy link

JohnyL commented May 26, 2021

As of .NET 6 Preview 4, new DateOnly and TimeOnly types were added. However, in EF Core 6 Preview 4 I get the following error (I use SQL Server):

System.InvalidOperationException: 'The property 'Product.DateAdd' is of type 'DateOnly' which is not supported by the current database provider. Either change the property CLR type, or ignore the property using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'.'

@ErikEJ
Copy link
Contributor

ErikEJ commented May 26, 2021

Duplicate, and not yet implemented.

@roji
Copy link
Member

roji commented May 26, 2021

Duplicate of #24507

@roji roji marked this as a duplicate of #24507 May 26, 2021
@roji roji marked this as a duplicate of #24506 May 26, 2021
@roji roji marked this as not a duplicate of #24506 May 26, 2021
@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

4 participants