What calls the setters in an Entity?

前端 未结 2 1089
长情又很酷
长情又很酷 2021-01-24 10:25

In Entity Framework, you must create a class that derives from DbContext with IDbSet properties. What in Entity Framework calls the setters and how does this work?

2条回答
  •  臣服心动
    2021-01-24 10:56

    EF uses reflection to discover IDbSet properties on DbContext derived classes and sets them accordingly.

提交回复
热议问题