Esempio n. 1
0
        // 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:
        //  CrudeClientEventData: primary key of table CrudeClientEventData
        public CrudeClientEventModel FetchByClientEventId(System.Guid clientEventId)
        {
            var dataAccessLayer = new CrudeClientEventData();
            var model           = new CrudeClientEventModel();

            dataAccessLayer.FetchByClientEventId(clientEventId);
            DataToModel(dataAccessLayer, model);

            return(model);
        }
Esempio n. 2
0
        // 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:
        //  clientEventId: primary key of table client_event
        public CrudeClientEventContract FetchByClientEventId(System.Guid clientEventId)
        {
            var dataAccessLayer = new CrudeClientEventData();
            var contract        = new CrudeClientEventContract();

            dataAccessLayer.FetchByClientEventId(clientEventId);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }