Entity Framework 4.1 Hooks – DRYing it up with EFHooks
Posted by Kevin McKelvin on June 21, 2011 in Entity Framework, Open SourceOne of the things I fell in love with about Rails is its automatic management of timestamps on data. When you create a new entity, it sets the created_at field. When you Update it, it sets the modified_at timestamp.For a long time I’ve used NHibernate as my ORM of choice for .NET and registered listeners for the pre-insert and pre-update events in NHibernate to handle this for me. Now that Entity Framework 4.1 is out and becoming more useful I was interested in seeing how similar things could be done.Entity Framework’s extension points are very limited compared to what NHiber
Continue ReadingView Comments (2)

