I have created a base class for my Unit of Work called BaseUoW that inherits IDisposable like so:
public class BaseUoW : IDisposable
{
}
My question is... If i create class called UserUoW for example that inherits my BaseUoW does the UserUoW need to implement IDisposable or will it be handled by my BaseUow
public class BaseUoW : IBaseUoW
{
}
Or
public class BaseUoW : IBaseUoW, IDisposable
{
}
IBaseUoW
public interface IBaseUoW
{
virtual void Dispose(bool disposing);
void Commit();
}