I was curious about what the purpose of OnModelCreating in EF4 Code-First context class? How does it work?
Here is a nice article in ADO.NET Team Blog. In short, this event is mainly for Fluent mapping.