Fluent API Tutorial
14 Apr 2020 | CSharp-EFFluent API is a complementary approach that data annotation can’t do. the design pattern comes from Fluent API(a.k.a Fluent Interface). the actual implement mechanism comes from Method Chaining.
- Fluent API is another way to configure domain classes over the Code First Convention and Data Annotation.
- Fluent API is more flexible and provides developers more functionalities than Data Annotation.
- The priority of the Entity Framework processing is Fluent API > Data Annotation > Default Convention.
In this article:
Comments