private static List <GoogleCheckoutLog> LoadListFromReader(IDataReader reader) { List <GoogleCheckoutLog> googleCheckoutLogList = new List <GoogleCheckoutLog>(); try { while (reader.Read()) { GoogleCheckoutLog googleCheckoutLog = new GoogleCheckoutLog(); googleCheckoutLog.rowGuid = new Guid(reader["RowGuid"].ToString()); googleCheckoutLog.createdUtc = Convert.ToDateTime(reader["CreatedUtc"]); googleCheckoutLog.siteGuid = new Guid(reader["SiteGuid"].ToString()); googleCheckoutLog.userGuid = new Guid(reader["UserGuid"].ToString()); googleCheckoutLog.storeGuid = new Guid(reader["StoreGuid"].ToString()); googleCheckoutLog.cartGuid = new Guid(reader["CartGuid"].ToString()); googleCheckoutLog.notificationType = reader["NotificationType"].ToString(); googleCheckoutLog.rawResponse = reader["RawResponse"].ToString(); googleCheckoutLog.serialNumber = reader["SerialNumber"].ToString(); googleCheckoutLog.gTimestamp = Convert.ToDateTime(reader["GTimestamp"]); googleCheckoutLog.orderNumber = reader["OrderNumber"].ToString(); googleCheckoutLog.buyerId = reader["BuyerId"].ToString(); googleCheckoutLog.fullfillState = reader["FullfillState"].ToString(); googleCheckoutLog.financeState = reader["FinanceState"].ToString(); googleCheckoutLog.emailListOptIn = Convert.ToBoolean(reader["EmailListOptIn"]); googleCheckoutLog.avsResponse = reader["AvsResponse"].ToString(); googleCheckoutLog.cvnResponse = reader["CvnResponse"].ToString(); googleCheckoutLog.authExpDate = Convert.ToDateTime(reader["AuthExpDate"]); googleCheckoutLog.authAmt = Convert.ToDecimal(reader["AuthAmt"]); googleCheckoutLog.discountTotal = Convert.ToDecimal(reader["DiscountTotal"]); googleCheckoutLog.shippingTotal = Convert.ToDecimal(reader["ShippingTotal"]); googleCheckoutLog.taxTotal = Convert.ToDecimal(reader["TaxTotal"]); googleCheckoutLog.orderTotal = Convert.ToDecimal(reader["OrderTotal"]); googleCheckoutLog.latestChgAmt = Convert.ToDecimal(reader["LatestChgAmt"]); googleCheckoutLog.totalChgAmt = Convert.ToDecimal(reader["TotalChgAmt"]); googleCheckoutLog.latestRefundAmt = Convert.ToDecimal(reader["LatestRefundAmt"]); googleCheckoutLog.totalRefundAmt = Convert.ToDecimal(reader["TotalRefundAmt"]); googleCheckoutLog.latestChargeback = Convert.ToDecimal(reader["LatestChargeback"]); googleCheckoutLog.totalChargeback = Convert.ToDecimal(reader["TotalChargeback"]); googleCheckoutLog.cartXml = reader["CartXml"].ToString(); googleCheckoutLog.providerName = reader["ProviderName"].ToString(); googleCheckoutLogList.Add(googleCheckoutLog); } } finally { reader.Close(); } return(googleCheckoutLogList); }
/// <summary> /// Compares 2 instances of GoogleCheckoutLog. /// </summary> public static int CompareByAuthExpDate(GoogleCheckoutLog googleCheckoutLog1, GoogleCheckoutLog googleCheckoutLog2) { return(googleCheckoutLog1.AuthExpDate.CompareTo(googleCheckoutLog2.AuthExpDate)); }
/// <summary> /// Compares 2 instances of GoogleCheckoutLog. /// </summary> public static int CompareByCvnResponse(GoogleCheckoutLog googleCheckoutLog1, GoogleCheckoutLog googleCheckoutLog2) { return(googleCheckoutLog1.CvnResponse.CompareTo(googleCheckoutLog2.CvnResponse)); }
/// <summary> /// Compares 2 instances of GoogleCheckoutLog. /// </summary> public static int CompareByFinanceState(GoogleCheckoutLog googleCheckoutLog1, GoogleCheckoutLog googleCheckoutLog2) { return(googleCheckoutLog1.FinanceState.CompareTo(googleCheckoutLog2.FinanceState)); }
/// <summary> /// Compares 2 instances of GoogleCheckoutLog. /// </summary> public static int CompareByBuyerId(GoogleCheckoutLog googleCheckoutLog1, GoogleCheckoutLog googleCheckoutLog2) { return(googleCheckoutLog1.BuyerId.CompareTo(googleCheckoutLog2.BuyerId)); }
/// <summary> /// Compares 2 instances of GoogleCheckoutLog. /// </summary> public static int CompareByOrderNumber(GoogleCheckoutLog googleCheckoutLog1, GoogleCheckoutLog googleCheckoutLog2) { return(googleCheckoutLog1.OrderNumber.CompareTo(googleCheckoutLog2.OrderNumber)); }
/// <summary> /// Compares 2 instances of GoogleCheckoutLog. /// </summary> public static int CompareByGTimestamp(GoogleCheckoutLog googleCheckoutLog1, GoogleCheckoutLog googleCheckoutLog2) { return(googleCheckoutLog1.GTimestamp.CompareTo(googleCheckoutLog2.GTimestamp)); }
/// <summary> /// Compares 2 instances of GoogleCheckoutLog. /// </summary> public static int CompareBySerialNumber(GoogleCheckoutLog googleCheckoutLog1, GoogleCheckoutLog googleCheckoutLog2) { return(googleCheckoutLog1.SerialNumber.CompareTo(googleCheckoutLog2.SerialNumber)); }
/// <summary> /// Compares 2 instances of GoogleCheckoutLog. /// </summary> public static int CompareByNotificationType(GoogleCheckoutLog googleCheckoutLog1, GoogleCheckoutLog googleCheckoutLog2) { return(googleCheckoutLog1.NotificationType.CompareTo(googleCheckoutLog2.NotificationType)); }
/// <summary> /// Compares 2 instances of GoogleCheckoutLog. /// </summary> public static int CompareByCreatedUtc(GoogleCheckoutLog googleCheckoutLog1, GoogleCheckoutLog googleCheckoutLog2) { return(googleCheckoutLog1.CreatedUtc.CompareTo(googleCheckoutLog2.CreatedUtc)); }