You Need To Master the EF Core Fluent API

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

I had to use fluent apis when using ddd in a project. Because i couldn't use annotations in my domain peoject and had to configure the mapping between the domain and the persistence layer. I had no idea how powerful fluent api was. Definitely a fan now

NabeelFarooqui
Автор

Fluent Api is ridiculously powerful because it allows you to model your domain properly, without thinking about EF, and then worry about the persistence separately. Honestly compared to EF in general and Fluent Api no other ORM comes even close.

MB-Kajtech
Автор

The value of the FluentAPI is that it allows you to keep the domain model clean, having no knowledge of the underlying data access layer, but, it's not perfect. Also, many would argue that domain model objects should be mapped to persistence model objects and vice-versa, however this incurs more work as you need to manage mapping, change tracking, and impedance mismatches between domain and persistence models.

MrMatthewLayton
Автор

Do you prefer fluent api over data annotations? If yes then why?

mohac
visit shbcf.ru