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
I have an idea I haven’t implemented yet. I’d like to know if you’d be open to merging it in if I develop it.
The concept is to automatically add predefined validations to the domain (like FluentValidation), and automatically add those validations as SQL Server Constraints.
Each type (e.g. string, int DateTime, etc.) would have it’s own extension method with optional parameters (e.g., name is a string, name.Validation(minLen: 5, maxLen: 25, trimBeforeValidating: true, etc).
Then I’d automatically add a method to set each property(e.g. SetName(), SetDescription()), and it will return an error or success, i'll use Source Generators to achieve that.
Additionally, I’d include an EF Core extension method AddErrorOrValidationAsSQLServerConstraints.
The text was updated successfully, but these errors were encountered:
I have an idea I haven’t implemented yet. I’d like to know if you’d be open to merging it in if I develop it.
The concept is to automatically add predefined validations to the domain (like FluentValidation), and automatically add those validations as SQL Server Constraints.
Each type (e.g. string, int DateTime, etc.) would have it’s own extension method with optional parameters (e.g., name is a string, name.Validation(minLen: 5, maxLen: 25, trimBeforeValidating: true, etc).
Then I’d automatically add a method to set each property(e.g. SetName(), SetDescription()), and it will return an error or success, i'll use Source Generators to achieve that.
Additionally, I’d include an EF Core extension method AddErrorOrValidationAsSQLServerConstraints.
The text was updated successfully, but these errors were encountered: