-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Support for DateOnly/TimeOnly for SQL Server #30109
Conversation
584591f
to
a844644
Compare
This is escalating 😄 |
@ErikEJ yeah, a little bit... Though I guess that's what it means to have "full support" for these types in EF... |
@@ -43,7 +44,8 @@ public SqlServerNetTopologySuiteTypeMappingSourcePlugin(NtsGeometryServices geom | |||
|| (storeTypeName != null | |||
&& _spatialStoreTypes.Contains(storeTypeName)) | |||
? (RelationalTypeMapping)Activator.CreateInstance( | |||
typeof(SqlServerGeometryTypeMapping<>).MakeGenericType(clrType ?? typeof(Geometry)), | |||
typeof(SqlServerGeometryTypeMapping<>).MakeGenericType( | |||
clrType is null || clrType == typeof(SqlBytes) ? typeof(Geometry) : clrType), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bricelam FYI
This is necessary since we now pass in both CLR type and store name when generating a query string, where before we were only passing in the store type (https://github.com/dotnet/efcore/pull/30109/files#diff-5ff1054f2cb8ec92738024ab01584a00d9f3ac89dd89a92e98489e5e4e486f94R65)
src/EFCore.SqlServer/Extensions/SqlServerDbFunctionsExtensions.cs
Outdated
Show resolved
Hide resolved
src/EFCore.SqlServer/Extensions/SqlServerDbFunctionsExtensions.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but let's talk about scaffolding in the design meeting.
Thank you guys for all your hard work on this! |
You're very welcome! |
Closes #24507
/cc @ErikEJ