johelvisguzman / DotNetToolkit.Repository

A toolkit for using the Repository pattern in C# .NET
MIT License
8 stars 5 forks source link

Add entity validation for the in-memory context #678

Closed johelvisguzman closed 2 years ago

johelvisguzman commented 2 years ago

Should use the data annotations validator for this:

https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.validator.tryvalidateobject?view=net-5.0