// 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:
        //  clientTypeRcd: primary key of table client_type_ref
        public CrudeClientTypeRefContract FetchByClientTypeRcd(string clientTypeRcd)
        {
            var dataAccessLayer = new CrudeClientTypeRefData();
            var contract        = new CrudeClientTypeRefContract();

            dataAccessLayer.FetchByClientTypeRcd(clientTypeRcd);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }
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/fdcc33b4-08f1-43c3-ae28-95fbf029c3bd
        // parameters:
        //  CrudeClientTypeRefData: primary key of table CrudeClientTypeRefData
        public CrudeClientTypeRefModel FetchByClientTypeRcd(string clientTypeRcd)
        {
            var dataAccessLayer = new CrudeClientTypeRefData();
            var model           = new CrudeClientTypeRefModel();

            dataAccessLayer.FetchByClientTypeRcd(clientTypeRcd);
            DataToModel(dataAccessLayer, model);

            return(model);
        }