// 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 <CrudeFinancialPaymentCashModel> FetchWithFilter(System.Guid financialPaymentCashId, decimal amount, System.Guid financialCurrencyId, System.Guid userId, System.DateTime dateTime) { var list = new List <CrudeFinancialPaymentCashModel>(); List <CrudeFinancialPaymentCashData> dataList = CrudeFinancialPaymentCashData.FetchWithFilter(financialPaymentCashId, amount, financialCurrencyId, userId, dateTime); foreach (CrudeFinancialPaymentCashData data in dataList) { var crudeFinancialPaymentCashBusinessModel = new CrudeFinancialPaymentCashModel(); DataToModel(data, crudeFinancialPaymentCashBusinessModel); list.Add(crudeFinancialPaymentCashBusinessModel); } return(list); }
// 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 <CrudeFinancialPaymentCashContract> FetchWithFilter(System.Guid financialPaymentCashId, decimal amount, System.Guid financialCurrencyId, System.Guid userId, System.DateTime dateTime) { var list = new List <CrudeFinancialPaymentCashContract>(); List <CrudeFinancialPaymentCashData> dataList = CrudeFinancialPaymentCashData.FetchWithFilter( financialPaymentCashId: financialPaymentCashId, amount: amount, financialCurrencyId: financialCurrencyId, userId: userId, dateTime: dateTime ); foreach (CrudeFinancialPaymentCashData data in dataList) { var crudeFinancialPaymentCashContract = new CrudeFinancialPaymentCashContract(); DataToContract(data, crudeFinancialPaymentCashContract); list.Add(crudeFinancialPaymentCashContract); } return(list); }