public void Delete(params object[] keyValues) { using (IRepository <T> repository = new XmlStreamRepository <T>(args)) { repository.Delete(keyValues); } }
public void Update(T entity) { using (IRepository <T> repository = new XmlStreamRepository <T>(args)) { repository.Update(entity); } }
public T SelectByID(params object[] keyValues) { using (IRepository <T> repository = new XmlStreamRepository <T>(args)) { return(repository.SelectByID(keyValues)); } }
public void Insert(T entity) { using (IRepository <T> repository = new XmlStreamRepository <T>(args)) { repository.Insert(entity); } }
public IEnumerable <T> SelectAll() { using (IRepository <T> repository = new XmlStreamRepository <T>(args)) { return(repository.SelectAll()); } }