I have following abstract class and need to implement IDisposable to make sure that DbContent will be disposed all the time properly.
public abstract class DataRepositoryBase<T> : DataRepositoryBase<T, MainDbContext>
where T : class, IIdentifiableEntity, new()
{
}
what is the best way to achieve that?
Please NOTE: I'm greatly aware on how to use IDisposable in concrete classes but implementation of this functionality in the abstract class - not very clear