Ejemplo n.º 1
0
 /// <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());
 }
Ejemplo n.º 2
0
 public List <Employee> GetList()
 {
     return(DapperHelper.GetList <Employee>().ToList());
 }
Ejemplo n.º 3
0
        public User GetUser(string userid, string pwd)
        {
            var res = DapperHelper.GetList <User>(new { UserID = userid, Password = pwd }).FirstOrDefault();

            return(res);
        }
Ejemplo n.º 4
0
 public List <User> GetList(object whereConditions = null)
 {
     return(DapperHelper.GetList <User>(whereConditions).ToList());
 }
Ejemplo n.º 5
0
 public List <Product> GetList()
 {
     return(DapperHelper.GetList <Product>().ToList());
 }
Ejemplo n.º 6
0
 public List <Customer> GetList()
 {
     return(DapperHelper.GetList <Customer>().ToList());
 }