This project is read-only.


Topics: Developer Forum
Dec 3, 2006 at 8:43 AM
Hi Raf,
thanks to publish your collection, I am looking at it to understand how it works.
In the documentation, at the chapter 6.3.1 you are saying that it is not a good implementation to create a base class for the entity, implementing there the IEditableObject interface and derive all entities from the base class.
Could you please elaborate a bit this concept and pros/cons of this approach?

Dec 3, 2006 at 2:00 PM
Hi Antonio,
with this project I really wanted to prepare general purpose implementation to support as many scenarios as possible.
For this reason I believe it's not a good idea to force the developer to use inheritance as a general solution. You may need to have different base classes in your entities.
For this reason I preferred having a separate static helper class that minimize the code to write inside the entities.
In your real project maybe it's acceptable to have a base class for all the entities. If it's your case, use it. But who knows ... :-)