I have a bunch of tables which all have the same column called SessionID of type Guid, this is the ID of the session the entities were created in. I am trying to write a generic class that will count the entities for specific session and specific entity type. Has anyone done something like that with LLBLGen?
public class EntityCounterControl<T> where T : EntityBase2, IEntity2
{
public int CountEntities(Guid sessionID)
{
//How can I count the entities for type T?
}
};