Dapper

             //var dp = new DynamicParameters(new { });
            //dp.Add("Id", Id, DbType.Guid);
            //var vData = await DapperHelper.QueryFirstAsync<User>("select * from AC_User where Id=@Id", "AuthCenterDB", dp, PandoraDbType.SqlServer);
            //if (vData != null)
            //{
            //    var returnData = vData.MapTo<User, UserOutputDto>();

            //    return ResultModel.Success(returnData);
            //}
            //else
            //{
            //    return ResultModel.Error("未找到对应数据,查询失败!", (int)PandoraErrorCode.QueryError);
            //}

 

Dapper

上一篇:org.apache.hadoop.hbase.TableExistsException: hbase:namespace


下一篇:Android Studio 3.5.2添加依赖库