Exemple #1
0
 public void Delete(params object[] keyValues)
 {
     using (IRepository <T> repository = new XmlStreamRepository <T>(args))
     {
         repository.Delete(keyValues);
     }
 }
Exemple #2
0
 public void Update(T entity)
 {
     using (IRepository <T> repository = new XmlStreamRepository <T>(args))
     {
         repository.Update(entity);
     }
 }
Exemple #3
0
 public T SelectByID(params object[] keyValues)
 {
     using (IRepository <T> repository = new XmlStreamRepository <T>(args))
     {
         return(repository.SelectByID(keyValues));
     }
 }
Exemple #4
0
 public void Insert(T entity)
 {
     using (IRepository <T> repository = new XmlStreamRepository <T>(args))
     {
         repository.Insert(entity);
     }
 }
Exemple #5
0
 public IEnumerable <T> SelectAll()
 {
     using (IRepository <T> repository = new XmlStreamRepository <T>(args))
     {
         return(repository.SelectAll());
     }
 }