// 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 <CrudeFinancialCurrencyTypeRefModel> FetchWithFilter(string financialCurrencyTypeRcd, string financialCurrencyTypeCode, string financialCurrencyTypeName, int decimalCount, System.Guid userId, System.DateTime dateTime) { var list = new List <CrudeFinancialCurrencyTypeRefModel>(); List <CrudeFinancialCurrencyTypeRefData> dataList = CrudeFinancialCurrencyTypeRefData.FetchWithFilter(financialCurrencyTypeRcd, financialCurrencyTypeCode, financialCurrencyTypeName, decimalCount, userId, dateTime); foreach (CrudeFinancialCurrencyTypeRefData data in dataList) { var crudeFinancialCurrencyTypeRefBusinessModel = new CrudeFinancialCurrencyTypeRefModel(); DataToModel(data, crudeFinancialCurrencyTypeRefBusinessModel); list.Add(crudeFinancialCurrencyTypeRefBusinessModel); } 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 <CrudeFinancialCurrencyTypeRefContract> FetchWithFilter(string financialCurrencyTypeRcd, string financialCurrencyTypeCode, string financialCurrencyTypeName, int decimalCount, System.Guid userId, System.DateTime dateTime) { var list = new List <CrudeFinancialCurrencyTypeRefContract>(); List <CrudeFinancialCurrencyTypeRefData> dataList = CrudeFinancialCurrencyTypeRefData.FetchWithFilter( financialCurrencyTypeRcd: financialCurrencyTypeRcd, financialCurrencyTypeCode: financialCurrencyTypeCode, financialCurrencyTypeName: financialCurrencyTypeName, decimalCount: decimalCount, userId: userId, dateTime: dateTime ); foreach (CrudeFinancialCurrencyTypeRefData data in dataList) { var crudeFinancialCurrencyTypeRefContract = new CrudeFinancialCurrencyTypeRefContract(); DataToContract(data, crudeFinancialCurrencyTypeRefContract); list.Add(crudeFinancialCurrencyTypeRefContract); } return(list); }