//得到整型
var parentid = _.apiService._db.GetInt("SELECT ParentId FROM SysBest_Role where Id = " + Id + ""); //执行sql,parentidPar是sql中的参数变量 var result = _.apiService._db.SqlQuery<SysBest_Role>(sql,new { ParentidPar = parentid });
//得到整型
var parentid = _.apiService._db.GetInt("SELECT ParentId FROM SysBest_Role where Id = " + Id + ""); //执行sql,parentidPar是sql中的参数变量 var result = _.apiService._db.SqlQuery<SysBest_Role>(sql,new { ParentidPar = parentid });