What the purpose of OnModelCreating in EF4 Code-First?

前端 未结 2 574
刺人心
刺人心 2021-02-02 00:44

I was curious about what the purpose of OnModelCreating in EF4 Code-First context class? How does it work?

2条回答
  •  鱼传尺愫
    2021-02-02 00:54

    Here is a nice article in ADO.NET Team Blog.
    In short, this event is mainly for Fluent mapping.

提交回复
热议问题