/// <summary> /// 按照关联id寻找所有相关资源 /// </summary> /// <param name="relatedID"></param> /// <returns></returns> public List <Attachment> GetList(int relatedID) { object where = new { RelatedID = relatedID }; return(DapperHelper.GetList <Attachment>(where).ToList()); }
public List <Employee> GetList() { return(DapperHelper.GetList <Employee>().ToList()); }
public User GetUser(string userid, string pwd) { var res = DapperHelper.GetList <User>(new { UserID = userid, Password = pwd }).FirstOrDefault(); return(res); }
public List <User> GetList(object whereConditions = null) { return(DapperHelper.GetList <User>(whereConditions).ToList()); }
public List <Product> GetList() { return(DapperHelper.GetList <Product>().ToList()); }
public List <Customer> GetList() { return(DapperHelper.GetList <Customer>().ToList()); }