// 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:
        //  CrudeFinancialFareData: primary key of table CrudeFinancialFareData
        public CrudeFinancialFareModel FetchByFinancialFareId(System.Guid financialFareId)
        {
            var dataAccessLayer = new CrudeFinancialFareData();
            var model           = new CrudeFinancialFareModel();

            dataAccessLayer.FetchByFinancialFareId(financialFareId);
            DataToModel(dataAccessLayer, model);

            return(model);
        }
Example #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:
        //  financialFareId: primary key of table financial_fare
        public CrudeFinancialFareContract FetchByFinancialFareId(System.Guid financialFareId)
        {
            var dataAccessLayer = new CrudeFinancialFareData();
            var contract        = new CrudeFinancialFareContract();

            dataAccessLayer.FetchByFinancialFareId(financialFareId);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }