CapArea and CMAP Presentations

Next week (Tuesday, October 26) I'll be presenting Entity Framework 4 at CapArea [http://caparea.net/]. The following week (Tuesday, November 2) I'll be presenting the same talk at CMAP [http://www.cmap-online.org/Meetings/Details/2010-11-02.aspx]. Hope to see you there!...


Testing EF4 Code First Optimistic Concurrency with Fluent Assertions

Entity Framework 4 Code First CTP4 was released in July and the API for developing without any edmx continues to mature and get better. Code First allows you to define your entity framework configuration with a Fluent API similar to Fluent NHibernate [http://fluentnhibernate.org/]. Although the API for EF Code First is very user friendly, you should still have integration tests to verify that you've configured your entities correctly. This post will walk through configuring EF4 Code First optimi...


WCF REST Services Inside MVC Projects

Recently I blogged about WCF REST services with no svc file and no config [http://geekswithblogs.net/michelotti/archive/2010/08/21/restful-wcf-services-with-no-svc-file-and-no-config.aspx] . In this post I also discussed the pros/cons of WCF services as compared to using MVC controller actions for web services and I made the case that, in many instances, WCF REST services is better than using the MVC infrastructure because WCF provides: * a more RESTful API with less work * a convenient autom...


MVC 2 Model Metadata to Render Dynamic UI

Recently we had a project where we needed to render certain questions on the screen dynamically based on answers to previous questions on previous screens.  For questions that need to dynamically be visible/invisible on the same screen, this can simply be controlled with jQuery.  However, in this case, based on the user's input on previous screens we know there are certain questions that will not be applicable before the current screen even loads. In this case, we could use jQuery to set those...


DC DNUG Presentation Code Samples

Thanks to everyone who attended my MVC 2 presentation last night at DC DNUG [http://dcdnug.org/dnn/default.aspx]. I was very impressed with this new user group. We had a good turn out and got good questions from the participants. The code and PowerPoint from the presentation can be downloaded here [http://code.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=michelotti&ReleaseId=4333] ....