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 { bool Add(T EntityObj, bool isSave) where T : class; bool Del(T EntityObj, bool isSave) where T : class; bool Update(T EntityObj, bool isSave) where T : class; bool 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; } }