What is Entity Framework fluent api?

前端 未结 5 1249
梦毁少年i
梦毁少年i 2021-01-30 00:45

I keep hearing about the Entity Framework fluent-api but I am struggling to find a good reference on this. What is it?

We use the entity framework and the modeling tool

5条回答
  •  一个人的身影
    2021-01-30 01:30

    See the paragraph on POCO classes in http://www.asp.net/entity-framework/tutorials/creating-an-entity-framework-data-model-for-an-asp-net-mvc-application

    Essentially, in the context of EF, POCO classes are entity classes that do not inherit from the Entity Framework EntityObject class (which is what you get by default in Database First or Model First). As one of the other answers mentions, this makes it easier to serialize the objects, but also some development and automated testing methodologies prefer to work with objects that have no reference to the Entity Framework.

提交回复
热议问题