Should I implement Dispose () in DAO standard?
I'm trying to implement a CRUD using the EF core and the DAO standard, but I don't know if I should implement and where to implement Dispose
Follow My Code:
interface IMaintanable<T> : IDisposable
{
void Create(T obj);
T Retrieve(uint key);
void Update(T obj);
void Delete(uint key);
}
public class DocumentDAO : IMaintanable<Document>
{
public void Create(Document obj)
{
throw new NotImplementedException();
}
public void Delete(uint key)
{
throw new NotImplementedException();
}
public void Dispose()
{
throw new NotImplementedException();
}
public Document Retrieve(uint key)
{
throw new NotImplementedException();
}
public void Update(Document obj)
{
throw new NotImplementedException();
}
}