Define validation and relations for models in separate classes using EF Core Fluent API, this will avoid usage of anottation attributes.
These attributes are used for everything and they are not enough to configure all validations and relations.
The models will be clean and the logic for validations will be separated.
Define validation and relations for models in separate classes using EF Core Fluent API, this will avoid usage of anottation attributes. These attributes are used for everything and they are not enough to configure all validations and relations. The models will be clean and the logic for validations will be separated.