Ejemplo n.º 1
0
 internal static IList <string> List()
 {
     return(DBH.GetList <string>(QA.DBCS_MAIN, CommandType.Text, "SELECT typename FROM ajaxmethods"));
 }
Ejemplo n.º 2
0
 /// <summary>
 ///  获取可用的邀请码
 /// </summary>
 /// <param name="id">用户标识</param>
 /// <returns>返回邀请码列表,如果没有可用的邀请码返回NULL</returns>
 public static IList <string> GetInviteCode(int id)
 {
     return(DBH.GetList <string>(QA.DBCS_MAIN, CommandType.Text, "SELECT code FROM inviteinfo WHERE id=@id AND used=0", new SqlParameter("@id", id)));
 }
Ejemplo n.º 3
0
 public static IList <int> GetRoleExList(int uid)
 {
     return(DBH.GetList <int>(QA.DBCS_MAIN, CommandType.Text, "SELECT roleid FROM user_role_ex WHERE uid=@uid", new SqlParameter("@uid", uid)));
 }