예제 #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:
        //  financialPaymentCouponId: primary key of table financial_payment_coupon
        public CrudeFinancialPaymentCouponContract FetchByFinancialPaymentCouponId(System.Guid financialPaymentCouponId)
        {
            var dataAccessLayer = new CrudeFinancialPaymentCouponData();
            var contract        = new CrudeFinancialPaymentCouponContract();

            dataAccessLayer.FetchByFinancialPaymentCouponId(financialPaymentCouponId);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }
        // 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:
        //  CrudeFinancialPaymentCouponData: primary key of table CrudeFinancialPaymentCouponData
        public CrudeFinancialPaymentCouponModel FetchByFinancialPaymentCouponId(System.Guid financialPaymentCouponId)
        {
            var dataAccessLayer = new CrudeFinancialPaymentCouponData();
            var model           = new CrudeFinancialPaymentCouponModel();

            dataAccessLayer.FetchByFinancialPaymentCouponId(financialPaymentCouponId);
            DataToModel(dataAccessLayer, model);

            return(model);
        }