コード例 #1
0
        // fetch all from table into new List of class instances, filtered by any column
        // links:
        //  docLink: http://sql2x.org/documentationLink/db27658d-4d23-46d7-9970-7bbaef8634b0
        public List <CrudeFinancialPaymentTypeRefModel> FetchWithFilter(string financialPaymentTypeRcd, string financialPaymentTypeName, System.Guid userId, System.DateTime dateTime)
        {
            var list = new List <CrudeFinancialPaymentTypeRefModel>();
            List <CrudeFinancialPaymentTypeRefData> dataList = CrudeFinancialPaymentTypeRefData.FetchWithFilter(financialPaymentTypeRcd, financialPaymentTypeName, userId, dateTime);

            foreach (CrudeFinancialPaymentTypeRefData data in dataList)
            {
                var crudeFinancialPaymentTypeRefBusinessModel = new CrudeFinancialPaymentTypeRefModel();
                DataToModel(data, crudeFinancialPaymentTypeRefBusinessModel);
                list.Add(crudeFinancialPaymentTypeRefBusinessModel);
            }

            return(list);
        }
コード例 #2
0
        // fetch all rows from table into new List of Contracts, filtered by any column
        // links:
        //  docLink: http://sql2x.org/documentationLink/ce01ef4a-5cd0-4e51-b211-9c0a15b791a0
        public List <CrudeFinancialPaymentTypeRefContract> FetchWithFilter(string financialPaymentTypeRcd, string financialPaymentTypeName, System.Guid userId, System.DateTime dateTime)
        {
            var list = new List <CrudeFinancialPaymentTypeRefContract>();
            List <CrudeFinancialPaymentTypeRefData> dataList = CrudeFinancialPaymentTypeRefData.FetchWithFilter(
                financialPaymentTypeRcd: financialPaymentTypeRcd,
                financialPaymentTypeName: financialPaymentTypeName,
                userId: userId,
                dateTime: dateTime
                );

            foreach (CrudeFinancialPaymentTypeRefData data in dataList)
            {
                var crudeFinancialPaymentTypeRefContract = new CrudeFinancialPaymentTypeRefContract();
                DataToContract(data, crudeFinancialPaymentTypeRefContract);
                list.Add(crudeFinancialPaymentTypeRefContract);
            }

            return(list);
        }