// 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: // addressId: primary key of table address public CrudeAddressContract FetchByAddressId(System.Guid addressId) { var dataAccessLayer = new CrudeAddressData(); var contract = new CrudeAddressContract(); dataAccessLayer.FetchByAddressId(addressId); DataToContract(dataAccessLayer, contract); return(contract); }
// 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: // CrudeAddressData: primary key of table CrudeAddressData public CrudeAddressModel FetchByAddressId(System.Guid addressId) { var dataAccessLayer = new CrudeAddressData(); var model = new CrudeAddressModel(); dataAccessLayer.FetchByAddressId(addressId); DataToModel(dataAccessLayer, model); return(model); }