using NFine.Code; using System; using System.Collections.Generic; using System.Data.Common; using System.Linq; using System.Linq.Expressions; namespace NFine.Data { public interface IRepositoryBase : IDisposable { IRepositoryBase BeginTrans(); int Commit(); int Insert(TEntity entity) where TEntity : class; int Insert(List entitys) where TEntity : class; int Update(TEntity entity) where TEntity : class; int Delete(TEntity entity) where TEntity : class; int Delete(Expression> predicate) where TEntity : class; TEntity FindEntity(object keyValue) where TEntity : class; TEntity FindEntity(Expression> predicate) where TEntity : class; IQueryable IQueryable() where TEntity : class; IQueryable IQueryable(Expression> predicate) where TEntity : class; List FindList(string strSql) where TEntity : class; List FindList(string strSql, DbParameter[] dbParameter) where TEntity : class; List FindList(Pagination pagination) where TEntity : class,new(); List FindList(Expression> predicate, Pagination pagination) where TEntity : class,new(); } }