Monday, 3 August 2015
Service locator is (not) an anti-pattern
I have used service locator pattern in my projects without any problems and I was quite happy with it until someone told me that is an anti-pattern. I was bit surprised and did some search on google and found many articles suggesting that it is an anti-pattern. After going through them I concluded -"that is not how I have used it".
Friday, 24 July 2015
Entities to database mapping in EntityFramework
In this post I'm going to share different ideas to map domain entities to database schema in Code First development. In all of the approaches, I'm going to derive from DbContext class and overrides its
OnModelCreating method. You can still use the ideas from this post even if you're directly using DbModelBuilder to create DbContext. For the purpose of this post I'm using two classes- Product and Brand; you can find them here.
Subscribe to:
Posts (Atom)
Guflow added support for timeout in signal APIs
Just released version - 2.0.5 of Guflow has added the support for timeout in signal APIs. Now with minimum efforts you can support the human...
-
In this post I'm going to share different ideas to map domain entities to database schema in Code First development. In all of the appr...
-
In this post I'm going to share two programming styles - one I switched to when I boarded the TDD train and the other one is I'm fo...
-
In this post I will try to list some of the mistakes I made while practising Test Driven Development(TDD). I will partly blame my mistakes...