// fetch by Primary key into current object // links: // crud definition: https://en.wikipedia.org/wiki/Create,_read,_update_and_delete // docLink: http://sql2x.org/documentationLink/fdcc33b4-08f1-43c3-ae28-95fbf029c3bd // parameters: // CrudeTitleRefData: primary key of table CrudeTitleRefData public CrudeTitleRefModel FetchByTitleRcd(string titleRcd) { var dataAccessLayer = new CrudeTitleRefData(); var model = new CrudeTitleRefModel(); dataAccessLayer.FetchByTitleRcd(titleRcd); DataToModel(dataAccessLayer, model); return(model); }
// fetch by Primary key into current object // links: // crud definition: https://en.wikipedia.org/wiki/Create,_read,_update_and_delete // docLink: http://sql2x.org/documentationLink/bbab4791-c9e7-49bf-90d5-fca19b1fedaa // parameters: // titleRcd: primary key of table title_ref public CrudeTitleRefContract FetchByTitleRcd(string titleRcd) { var dataAccessLayer = new CrudeTitleRefData(); var contract = new CrudeTitleRefContract(); dataAccessLayer.FetchByTitleRcd(titleRcd); DataToContract(dataAccessLayer, contract); return(contract); }