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:
        //  CrudeFinancialPaymentCashData: primary key of table CrudeFinancialPaymentCashData
        public CrudeFinancialPaymentCashModel FetchByFinancialPaymentCashId(System.Guid financialPaymentCashId)
        {
            var dataAccessLayer = new CrudeFinancialPaymentCashData();
            var model           = new CrudeFinancialPaymentCashModel();

            dataAccessLayer.FetchByFinancialPaymentCashId(financialPaymentCashId);
            DataToModel(dataAccessLayer, model);

            return(model);
        }
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/bbab4791-c9e7-49bf-90d5-fca19b1fedaa
        // parameters:
        //  financialPaymentCashId: primary key of table financial_payment_cash
        public CrudeFinancialPaymentCashContract FetchByFinancialPaymentCashId(System.Guid financialPaymentCashId)
        {
            var dataAccessLayer = new CrudeFinancialPaymentCashData();
            var contract        = new CrudeFinancialPaymentCashContract();

            dataAccessLayer.FetchByFinancialPaymentCashId(financialPaymentCashId);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }