Пример #1
0
        public static int FindNumOfPersonalDefaults(
            this ExperianConsumerData oData,
            decimal minDefaultBalance,
            DateTime defaultAccountMinDate,
            List <string> logList = null
            )
        {
            if ((oData == null) || (oData.Cais == null) || (oData.Cais.Count < 1))
            {
                return(0);
            }

            return(FindNumOfPersonalDefaults(
                       oData.Cais.Select(cais => new ExperianConsumerDataCaisAccounts {
                AccountStatusCodes = cais.AccountStatusCodes,
                Balance = cais.Balance,
                CurrentDefBalance = cais.CurrentDefBalance,
                LastUpdatedDate = cais.LastUpdatedDate,
                MatchTo = cais.MatchTo,
                Id = cais.Id
            }),
                       minDefaultBalance,
                       defaultAccountMinDate,
                       logList
                       ));
        }         // FindNumOfPersonalDefaults
Пример #2
0
        /// <summary>
        /// Loads only the consumer data table without all the detailed data
        /// </summary>
        public static ExperianConsumerData Load(long nServiceLogID, AConnection oDB, ASafeLog m_oLog)
        {
            var result = new ExperianConsumerData();
            var data   = oDB.ExecuteEnumerable(
                "LoadFullExperianConsumer",
                CommandSpecies.StoredProcedure,
                new QueryParameter("ServiceLogID", nServiceLogID)
                );

            foreach (SafeReader sr in data)
            {
                string sType = sr["DatumType"];

                switch (sType)
                {
                case "ExperianConsumerData":
                    sr.Fill(result);
                    result.Id = sr["Id"];
                    break;
                }
            }
            return(result);
        }