Hello,
We are trying to replace our homebuilt data access layer with LLBLGen. We have base entity collection that all our collection classes inherit from.
public class MyCollection : BaseCollection
{
}
Same thing for our Entity classes. Using LLBLGen I have been able to replicate much of the functionality that was in the subclassed entity and collection classes. But we also have many functions that take our base collection class an argument and then call methods like:
public void Remove(BaseCollection collection, BaseEntity entity)
{
if (BaseCollection.Find( Entity ))
{
BaseCollection .Delete ( Entity )
}
}
We have hundreds of functions that take the BaseCollection or BaseEntity as a parameter and call methods are not present in LLBLGen.
Is there a way to add functionality to the IEntityCollection or EntityCollectionBase classes? I need some way of putting in some code to the base collection class to mimic the behavior we already have in place.
As far as I can tell (I have not been working with LLBLGen very long), there is no way to add code to anything that is in the SD.LLBLGen.Pro.ORMSupportClasses namespace. Has anyone else run into this and, if so, what is the recommended solution?
We are using LLBLGen Pro 2.0, Self Servicing.
Brian