/*********************** IBaseDAL<T>************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
namespace Company.IDAL
{
public interface IBaseDAL<T> where T:class,new ()
{
void Add(T t);
void Delete(T t);
void Update(T t);
IQueryable<T> GetModels(Expression<Func<T, bool>> whereLambda);
IQueryable<T> GetModelsByPage<type>(int pageIndex,int pageSize,bool isAsc,Expression<Func<T,type>> orderLambda, Expression<Func<T, bool>> whereLambda);
bool SaveChanges();
}
}
/**************************IStaffDAL***************************************************/
using Company.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Company.IDAL
{
public interface IStaffDAL:IBaseDAL<Staff>
{
}
}