What the purpose of OnModelCreating in EF4 Code-First?

Rushino picture Rushino · Jan 21, 2011 · Viewed 16.7k times · Source

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

Answer

Devart picture Devart · Jan 21, 2011

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