Esempio n. 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:
        //  CrudeFinancialFareTypeRefData: primary key of table CrudeFinancialFareTypeRefData
        public CrudeFinancialFareTypeRefModel FetchByFinancialFareTypeRcd(string financialFareTypeRcd)
        {
            var dataAccessLayer = new CrudeFinancialFareTypeRefData();
            var model           = new CrudeFinancialFareTypeRefModel();

            dataAccessLayer.FetchByFinancialFareTypeRcd(financialFareTypeRcd);
            DataToModel(dataAccessLayer, model);

            return(model);
        }
        // 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:
        //  financialFareTypeRcd: primary key of table financial_fare_type_ref
        public CrudeFinancialFareTypeRefContract FetchByFinancialFareTypeRcd(string financialFareTypeRcd)
        {
            var dataAccessLayer = new CrudeFinancialFareTypeRefData();
            var contract        = new CrudeFinancialFareTypeRefContract();

            dataAccessLayer.FetchByFinancialFareTypeRcd(financialFareTypeRcd);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }