public CrudeLinkTypeRefContract FetchByLinkTypeName(string linkTypeName) { var dataAccessLayer = new CrudeLinkTypeRefData(); var contract = new CrudeLinkTypeRefContract(); dataAccessLayer.FetchByLinkTypeName(linkTypeName); DataToContract(dataAccessLayer, contract); return(contract); }
// 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: // LinkTypeName: key of table CrudeLinkTypeRefData public CrudeLinkTypeRefModel FetchByLinkTypeName(string linkTypeName) { var dataAccessLayer = new CrudeLinkTypeRefData(); var model = new CrudeLinkTypeRefModel(); dataAccessLayer.FetchByLinkTypeName(linkTypeName); DataToModel(dataAccessLayer, model); return(model); }