// fetch by Search key into current object // links: // crud definition: https://en.wikipedia.org/wiki/Create,_read,_update_and_delete // docLink: http://sql2x.org/documentationLink/ad2dd952-e3ec-471a-9e34-f5fc965b8b37 // parameters: // ReportingRoundupTypeName: key of table CrudeReportingRoundupTypeRefData public CrudeReportingRoundupTypeRefModel FetchByReportingRoundupTypeName(string reportingRoundupTypeName) { var dataAccessLayer = new CrudeReportingRoundupTypeRefData(); var model = new CrudeReportingRoundupTypeRefModel(); dataAccessLayer.FetchByReportingRoundupTypeName(reportingRoundupTypeName); DataToModel(dataAccessLayer, model); return(model); }
public CrudeReportingRoundupTypeRefContract FetchByReportingRoundupTypeName(string reportingRoundupTypeName) { var dataAccessLayer = new CrudeReportingRoundupTypeRefData(); var contract = new CrudeReportingRoundupTypeRefContract(); dataAccessLayer.FetchByReportingRoundupTypeName(reportingRoundupTypeName); DataToContract(dataAccessLayer, contract); return(contract); }