コード例 #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/bbab4791-c9e7-49bf-90d5-fca19b1fedaa
        // parameters:
        //  ferryIdentifierId: primary key of table ferry_identifier
        public CrudeFerryIdentifierContract FetchByFerryIdentifierId(System.Guid ferryIdentifierId) {
            var dataAccessLayer = new CrudeFerryIdentifierData();
            var contract = new CrudeFerryIdentifierContract();

            dataAccessLayer.FetchByFerryIdentifierId(ferryIdentifierId);
            DataToContract(dataAccessLayer, contract);

            return contract;
        }
コード例 #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:
        //  CrudeFerryIdentifierData: primary key of table CrudeFerryIdentifierData
        public CrudeFerryIdentifierModel FetchByFerryIdentifierId(System.Guid ferryIdentifierId)
        {
            var dataAccessLayer = new CrudeFerryIdentifierData();
            var model           = new CrudeFerryIdentifierModel();

            dataAccessLayer.FetchByFerryIdentifierId(ferryIdentifierId);
            DataToModel(dataAccessLayer, model);

            return(model);
        }