using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace Y.DB.DAO { /// /// 数据通信接口 /// public interface IDbContext : IDisposable { int Add(T EntityObj, bool isSave) where T : class; int Del(T EntityObj, bool isSave) where T : class; int Update(T EntityObj, bool isSave) where T : class; int Save(); T Get(Expression> expression, string[] include) where T : class; IEnumerable Gets(Expression> expression, string[] include) where T : class; IEnumerable GetAll(string[] include, bool track) where T : class; IEnumerable ExecuteSqlCom(string sql, U paramObjs) where T : class where U : class; } }