Skip to content

Commit

Permalink
Add extension: ErikEJ.EntityFrameworkCore.SqlServer.DateOnlyTimeOnly (#…
Browse files Browse the repository at this point in the history
…4177)

Co-authored-by: Erik Ejlskov Jensen <eej@delegate.dk>
  • Loading branch information
ErikEJ and ErikEJ authored Dec 7, 2022
1 parent 6727c7d commit 8837358
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions entity-framework/core/extensions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,12 @@ Provides the `SqlQueryAsync<T>` and `SqlQueryValueAsync<T>` methods to help you

[GitHub repository](https://github.com/ErikEJ/EFCorePowerTools/tree/master/src/GUI/ErikEJ.EntityFrameworkCore.6.SqlServer.SqlQuery) | [NuGet](https://www.nuget.org/packages/ErikEJ.EntityFrameworkCore.SqlServer.SqlQuery)

### ErikEJ.EntityFrameworkCore.SqlServer.DateOnlyTimeOnly

Use the `DateOnly` and `TimeOnly` .NET types with the EF Core SQL Server provider. For EF Core: 6, 7.

[GitHub repository](https://github.com/ErikEJ/EFCore.SqlServer.DateOnlyTimeOnly) | [NuGet](https://www.nuget.org/packages/ErikEJ.EntityFrameworkCore.SqlServer.DateOnlyTimeOnly)

### EntityFramework.Exceptions

When using Entity Framework Core all database exceptions are wrapped in DbUpdateException. EntityFramework.Exceptions handles all the database-specific details to find which constraint was violated and allows you to use typed exceptions such as `UniqueConstraintException`, `CannotInsertNullException`, `MaxLengthExceededException`, `NumericOverflowException`, `ReferenceConstraintException` when your query violates database constraints.
Expand Down

0 comments on commit 8837358

Please sign in to comment.