///// <summary> ///// Gets a count of AuthorizeNetLog. ///// </summary> //public static int GetCount() //{ // return DBAuthorizeNetLog.GetCount(); //} private static List <AuthorizeNetLog> LoadListFromReader(IDataReader reader) { List <AuthorizeNetLog> authorizeNetLogList = new List <AuthorizeNetLog>(); try { while (reader.Read()) { AuthorizeNetLog authorizeNetLog = new AuthorizeNetLog(); authorizeNetLog.rowGuid = new Guid(reader["RowGuid"].ToString()); authorizeNetLog.createdUtc = Convert.ToDateTime(reader["CreatedUtc"]); authorizeNetLog.siteGuid = new Guid(reader["SiteGuid"].ToString()); authorizeNetLog.userGuid = new Guid(reader["UserGuid"].ToString()); authorizeNetLog.storeGuid = new Guid(reader["StoreGuid"].ToString()); authorizeNetLog.cartGuid = new Guid(reader["CartGuid"].ToString()); authorizeNetLog.rawResponse = reader["RawResponse"].ToString(); authorizeNetLog.responseCode = reader["ResponseCode"].ToString(); authorizeNetLog.responseReasonCode = reader["ResponseReasonCode"].ToString(); authorizeNetLog.reason = reader["Reason"].ToString(); authorizeNetLog.avsCode = reader["AvsCode"].ToString(); authorizeNetLog.ccvCode = reader["CcvCode"].ToString(); authorizeNetLog.cavCode = reader["CavCode"].ToString(); authorizeNetLog.transactionId = reader["TransactionId"].ToString(); authorizeNetLog.transactionType = reader["TransactionType"].ToString(); authorizeNetLog.method = reader["Method"].ToString(); authorizeNetLog.authCode = reader["AuthCode"].ToString(); authorizeNetLog.amount = Convert.ToDecimal(reader["Amount"]); authorizeNetLog.tax = Convert.ToDecimal(reader["Tax"]); authorizeNetLog.duty = Convert.ToDecimal(reader["Duty"]); authorizeNetLog.freight = Convert.ToDecimal(reader["Freight"]); authorizeNetLogList.Add(authorizeNetLog); } } finally { reader.Close(); } return(authorizeNetLogList); }
/// <summary> /// Compares 2 instances of AuthorizeNetLog. /// </summary> public static int CompareByAuthCode(AuthorizeNetLog authorizeNetLog1, AuthorizeNetLog authorizeNetLog2) { return(authorizeNetLog1.AuthCode.CompareTo(authorizeNetLog2.AuthCode)); }
/// <summary> /// Compares 2 instances of AuthorizeNetLog. /// </summary> public static int CompareByMethod(AuthorizeNetLog authorizeNetLog1, AuthorizeNetLog authorizeNetLog2) { return(authorizeNetLog1.Method.CompareTo(authorizeNetLog2.Method)); }
/// <summary> /// Compares 2 instances of AuthorizeNetLog. /// </summary> public static int CompareByTransactionType(AuthorizeNetLog authorizeNetLog1, AuthorizeNetLog authorizeNetLog2) { return(authorizeNetLog1.TransactionType.CompareTo(authorizeNetLog2.TransactionType)); }
/// <summary> /// Compares 2 instances of AuthorizeNetLog. /// </summary> public static int CompareByReason(AuthorizeNetLog authorizeNetLog1, AuthorizeNetLog authorizeNetLog2) { return(authorizeNetLog1.Reason.CompareTo(authorizeNetLog2.Reason)); }
/// <summary> /// Compares 2 instances of AuthorizeNetLog. /// </summary> public static int CompareByResponseReasonCode(AuthorizeNetLog authorizeNetLog1, AuthorizeNetLog authorizeNetLog2) { return(authorizeNetLog1.ResponseReasonCode.CompareTo(authorizeNetLog2.ResponseReasonCode)); }
/// <summary> /// Compares 2 instances of AuthorizeNetLog. /// </summary> public static int CompareByRawResponse(AuthorizeNetLog authorizeNetLog1, AuthorizeNetLog authorizeNetLog2) { return(authorizeNetLog1.RawResponse.CompareTo(authorizeNetLog2.RawResponse)); }
///// <summary> ///// Gets an IList with page of instances of AuthorizeNetLog. ///// </summary> ///// <param name="pageNumber">The page number.</param> ///// <param name="pageSize">Size of the page.</param> ///// <param name="totalPages">total pages</param> //public static List<AuthorizeNetLog> GetPage(int pageNumber, int pageSize, out int totalPages) //{ // totalPages = 1; // IDataReader reader = DBAuthorizeNetLog.GetPage(pageNumber, pageSize, out totalPages); // return LoadListFromReader(reader); //} #endregion #region Comparison Methods /// <summary> /// Compares 2 instances of AuthorizeNetLog. /// </summary> public static int CompareByCreatedUtc(AuthorizeNetLog authorizeNetLog1, AuthorizeNetLog authorizeNetLog2) { return(authorizeNetLog1.CreatedUtc.CompareTo(authorizeNetLog2.CreatedUtc)); }
///// <summary> ///// Gets a count of AuthorizeNetLog. ///// </summary> //public static int GetCount() //{ // return DBAuthorizeNetLog.GetCount(); //} private static List<AuthorizeNetLog> LoadListFromReader(IDataReader reader) { List<AuthorizeNetLog> authorizeNetLogList = new List<AuthorizeNetLog>(); try { while (reader.Read()) { AuthorizeNetLog authorizeNetLog = new AuthorizeNetLog(); authorizeNetLog.rowGuid = new Guid(reader["RowGuid"].ToString()); authorizeNetLog.createdUtc = Convert.ToDateTime(reader["CreatedUtc"]); authorizeNetLog.siteGuid = new Guid(reader["SiteGuid"].ToString()); authorizeNetLog.userGuid = new Guid(reader["UserGuid"].ToString()); authorizeNetLog.storeGuid = new Guid(reader["StoreGuid"].ToString()); authorizeNetLog.cartGuid = new Guid(reader["CartGuid"].ToString()); authorizeNetLog.rawResponse = reader["RawResponse"].ToString(); authorizeNetLog.responseCode = reader["ResponseCode"].ToString(); authorizeNetLog.responseReasonCode = reader["ResponseReasonCode"].ToString(); authorizeNetLog.reason = reader["Reason"].ToString(); authorizeNetLog.avsCode = reader["AvsCode"].ToString(); authorizeNetLog.ccvCode = reader["CcvCode"].ToString(); authorizeNetLog.cavCode = reader["CavCode"].ToString(); authorizeNetLog.transactionId = reader["TransactionId"].ToString(); authorizeNetLog.transactionType = reader["TransactionType"].ToString(); authorizeNetLog.method = reader["Method"].ToString(); authorizeNetLog.authCode = reader["AuthCode"].ToString(); authorizeNetLog.amount = Convert.ToDecimal(reader["Amount"]); authorizeNetLog.tax = Convert.ToDecimal(reader["Tax"]); authorizeNetLog.duty = Convert.ToDecimal(reader["Duty"]); authorizeNetLog.freight = Convert.ToDecimal(reader["Freight"]); authorizeNetLogList.Add(authorizeNetLog); } } finally { reader.Close(); } return authorizeNetLogList; }
/// <summary> /// Compares 2 instances of AuthorizeNetLog. /// </summary> public static int CompareByResponseReasonCode(AuthorizeNetLog authorizeNetLog1, AuthorizeNetLog authorizeNetLog2) { return authorizeNetLog1.ResponseReasonCode.CompareTo(authorizeNetLog2.ResponseReasonCode); }
/// <summary> /// Compares 2 instances of AuthorizeNetLog. /// </summary> public static int CompareByTransactionType(AuthorizeNetLog authorizeNetLog1, AuthorizeNetLog authorizeNetLog2) { return authorizeNetLog1.TransactionType.CompareTo(authorizeNetLog2.TransactionType); }
/// <summary> /// Compares 2 instances of AuthorizeNetLog. /// </summary> public static int CompareByReason(AuthorizeNetLog authorizeNetLog1, AuthorizeNetLog authorizeNetLog2) { return authorizeNetLog1.Reason.CompareTo(authorizeNetLog2.Reason); }
/// <summary> /// Compares 2 instances of AuthorizeNetLog. /// </summary> public static int CompareByRawResponse(AuthorizeNetLog authorizeNetLog1, AuthorizeNetLog authorizeNetLog2) { return authorizeNetLog1.RawResponse.CompareTo(authorizeNetLog2.RawResponse); }
/// <summary> /// Compares 2 instances of AuthorizeNetLog. /// </summary> public static int CompareByMethod(AuthorizeNetLog authorizeNetLog1, AuthorizeNetLog authorizeNetLog2) { return authorizeNetLog1.Method.CompareTo(authorizeNetLog2.Method); }
/// <summary> /// Compares 2 instances of AuthorizeNetLog. /// </summary> public static int CompareByCreatedUtc(AuthorizeNetLog authorizeNetLog1, AuthorizeNetLog authorizeNetLog2) { return authorizeNetLog1.CreatedUtc.CompareTo(authorizeNetLog2.CreatedUtc); }
/// <summary> /// Compares 2 instances of AuthorizeNetLog. /// </summary> public static int CompareByCcvCode(AuthorizeNetLog authorizeNetLog1, AuthorizeNetLog authorizeNetLog2) { return authorizeNetLog1.CcvCode.CompareTo(authorizeNetLog2.CcvCode); }