M-Yankov / OpenDevBlog

Open Dev Blog in progress...
MIT License
0 stars 0 forks source link

Use entity type builder #23

Open M-Yankov opened 5 years ago

M-Yankov commented 5 years ago

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.