// 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: // CrudeFerryTypeRefData: primary key of table CrudeFerryTypeRefData public CrudeFerryTypeRefModel FetchByFerryTypeRcd(string ferryTypeRcd) { var dataAccessLayer = new CrudeFerryTypeRefData(); var model = new CrudeFerryTypeRefModel(); dataAccessLayer.FetchByFerryTypeRcd(ferryTypeRcd); 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: // ferryTypeRcd: primary key of table ferry_type_ref public CrudeFerryTypeRefContract FetchByFerryTypeRcd(string ferryTypeRcd) { var dataAccessLayer = new CrudeFerryTypeRefData(); var contract = new CrudeFerryTypeRefContract(); dataAccessLayer.FetchByFerryTypeRcd(ferryTypeRcd); DataToContract(dataAccessLayer, contract); return(contract); }