I have tables that I insert, delete and update, but I read from views. At times, I may read from the tables as well. What is a better generic interface for a Repository:
public interface IViewRepository<T>
{
//Read queries
}
public interface ITableRepository<T>
{
//Insert, Update, Delete queries
}
or just one repository to handle both tables and views
public interface IRepository<TTable,TView>
{
//CRUD
}
Aucun commentaire:
Enregistrer un commentaire