public long AddRole(int ID, string roleName)
        {
            role r = new role
            {
                userid   = ID,
                rolename = roleName
            };

            return(dapperTools.Insert(r));
        }
示例#2
0
 public long Insert(Users obj)
 {
     try
     {
         return(_dapper.Insert <Users>(obj));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#3
0
 public long Insert(TEntity entity)
 {
     return(dapper.Insert <TEntity>(entity));
 }