Beispiel #1
0
 public int ifExist(int GameID)
 {
     try
     {
         var            sqlstr         = "select * from [QPAccountsDB].[dbo].[AccountsInfo] where GameID =" + GameID + "";
         AccountsFacade aideUserFacade = new AccountsFacade();
         DataSet        ds             = aideUserFacade.GetAccountInfoByGameID(sqlstr);
         if (ds.Tables[0].Rows.Count > 0)
         {
             return(int.Parse(ds.Tables[0].Rows[0]["UserID"].ToString()));
         }
         else
         {
             return(0);
         }
     }
     catch { return(0); }
 }