예제 #1
0
        public static int CheckCredentials(string username, string password)
        {
            string    query          = string.Format(checkCredentials, username, password);
            iSqlQuery checkCredQuery = new DB_ScalarQuery(query);

            return(checkCredQuery.Execute());
        }
예제 #2
0
        public static int CurrentBalance(string userName)
        {
            string    currentBal_Query = string.Format(fundsQuery, userName);
            iSqlQuery currentBalance   = new DB_ScalarQuery(currentBal_Query);

            return(currentBalance.Execute());
        }
예제 #3
0
        public static int CreateNewRecord(string s1, string s2, string s3, string s4, string s5, int n)
        {
            var newLoginDataQuery = string.Format(newUserQuery, s1, s2, s3, s4, s5, n);

            iSqlQuery createNewRecord = new DB_ScalarQuery(newLoginDataQuery);

            return(createNewRecord.Execute());
        }