You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Idea] Strongly typed concrete exceptions using code generation #78
Now the library provides common exceptions like unique constraint or check constraint violations.
The idea is to scan a DB for all available constrains, generate specific exception classes for them with names like Unique{constraint_name}Violation using Roslyn code generation and map DBUpdateException to this concrete exceptions.
Then the code could become something like:
try
{
dbContext.SaveChanges();
}
catch UniqueEmailViolation e
{
...
}
Reactions are currently unavailable
Activity
Repository owner locked and limited conversation to collaborators on Sep 9, 2024
Activity