Example #1
0
        public void AddBILog(BILog logInfo)
        {
            switch (logInfo.Type)
            {
            case BITypes.Payment:
                PaymentBILog paymentLog = logInfo as PaymentBILog;
                AddPaymentLog(paymentLog);
                break;

            case BITypes.Purchase:
                break;
            }
        }
Example #2
0
        private void AddPaymentLog(PaymentBILog logInfo)
        {
            string tableName = BITypes.Payment.ToString();
            Dictionary <string, object> values = new Dictionary <string, object>()
            {
                { "UserId", logInfo.UserId },
                { "RemoteAdress", logInfo.RemoteAdress },
                { "CashCount", logInfo.CashCount },
                { "GameTokenCount", logInfo.GameTokenCount },
                { "RewardTokenCount", logInfo.RewardTokenCount },
                { "AttachInfo", logInfo.AttachInfo }
            };

            db.Insert(tableName, values);
        }