コード例 #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:
        //  CrudeClientEventTypeRefData: primary key of table CrudeClientEventTypeRefData
        public CrudeClientEventTypeRefModel FetchByClientEventTypeRcd(string clientEventTypeRcd)
        {
            var dataAccessLayer = new CrudeClientEventTypeRefData();
            var model           = new CrudeClientEventTypeRefModel();

            dataAccessLayer.FetchByClientEventTypeRcd(clientEventTypeRcd);
            DataToModel(dataAccessLayer, model);

            return(model);
        }
コード例 #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:
        //  clientEventTypeRcd: primary key of table client_event_type_ref
        public CrudeClientEventTypeRefContract FetchByClientEventTypeRcd(string clientEventTypeRcd)
        {
            var dataAccessLayer = new CrudeClientEventTypeRefData();
            var contract        = new CrudeClientEventTypeRefContract();

            dataAccessLayer.FetchByClientEventTypeRcd(clientEventTypeRcd);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }