public virtual bool Update(T item) { using (var db = DbTool.GetDb()) { return(db.Update(item)); } }
public virtual bool RemoveAll() { using (var db = DbTool.GetDb()) { return(db.DelteAll <T>()); } }
public virtual bool Remove(T item) { using (var db = DbTool.GetDb()) { return(db.Delete(item)); } }
public virtual T FindBy(K key) { using (var db = DbTool.GetDb()) { return(db.Get <T>(key)); } }
public virtual IEnumerable <T> FindAll() { using (var db = DbTool.GetDb()) { return(db.GetList <T>()); } }
public dynamic AddGet(T item) { using (var db = DbTool.GetDb()) { return(db.Insert(item)); } }
public virtual bool Add(T item) { using (var db = DbTool.GetDb()) { db.Insert(item); } return(true); }