Search code examples
entity-frameworkentity-framework-4code-first

What the purpose of OnModelCreating in EF4 Code-First?


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


Solution

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