POCO Support

Apr 29, 2007 at 2:43 PM
The EntityBase class in the SmartCA.Infrastructure.DomainBase namespace suggests the example in your book doesn’t support POCO. What are your thoughts towards POCO?
Coordinator
May 1, 2007 at 6:32 AM
Paul,

I do support POCO, the reason why I am using the EntityBase class is purely as a layered supertype. It's really so I don't have to repeat the same code every time for all of my entities.
Coordinator
May 7, 2007 at 8:30 AM
Edited Jun 13, 2007 at 6:34 PM
I actually just went to a LOT of trouble implementing the Unit of Work pattern in order to support POCO for this project :)
Coordinator
Feb 14, 2008 at 4:42 AM
I have since added an IEntity interface as well as an IAggregateRoot interface...everything in the code base now depends on interfaces instead of base classes...the base classes are still there to eliminate duplicate code, and the base classes implement the interfaces.