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 where TEntity : class,new()
{
int Insert(TEntity entity);
int Insert(List entitys);
int Update(TEntity entity);
int Delete(TEntity entity);
int Delete(Expression> predicate);
TEntity FindEntity(object keyValue);
TEntity FindEntity(Expression> predicate);
IQueryable IQueryable();
IQueryable IQueryable(Expression> predicate);
List FindList(string strSql);
List FindList(string strSql, DbParameter[] dbParameter);
List FindList(Pagination pagination);
List FindList(Expression> predicate, Pagination pagination);
List FindList(Expression> predicate, ref Pagination pagination);
}
}