// 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: // CrudeDefaultTestData: primary key of table CrudeDefaultTestData public CrudeDefaultTestModel FetchByDefaultTestId(System.Guid defaultTestId) { var dataAccessLayer = new CrudeDefaultTestData(); var model = new CrudeDefaultTestModel(); dataAccessLayer.FetchByDefaultTestId(defaultTestId); 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: // defaultTestId: primary key of table default_test public CrudeDefaultTestContract FetchByDefaultTestId(System.Guid defaultTestId) { var dataAccessLayer = new CrudeDefaultTestData(); var contract = new CrudeDefaultTestContract(); dataAccessLayer.FetchByDefaultTestId(defaultTestId); DataToContract(dataAccessLayer, contract); return(contract); }