コード例 #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:
        //  CrudeExternalSystemData: primary key of table CrudeExternalSystemData
        public CrudeExternalSystemModel FetchByExternalSystemId(System.Guid externalSystemId)
        {
            var dataAccessLayer = new CrudeExternalSystemData();
            var model           = new CrudeExternalSystemModel();

            dataAccessLayer.FetchByExternalSystemId(externalSystemId);
            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:
        //  externalSystemId: primary key of table external_system
        public CrudeExternalSystemContract FetchByExternalSystemId(System.Guid externalSystemId)
        {
            var dataAccessLayer = new CrudeExternalSystemData();
            var contract        = new CrudeExternalSystemContract();

            dataAccessLayer.FetchByExternalSystemId(externalSystemId);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }