コード例 #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:
        //  CrudeFinancialPaymentData: primary key of table CrudeFinancialPaymentData
        public CrudeFinancialPaymentModel FetchByFinancialPaymentId(System.Guid financialPaymentId)
        {
            var dataAccessLayer = new CrudeFinancialPaymentData();
            var model           = new CrudeFinancialPaymentModel();

            dataAccessLayer.FetchByFinancialPaymentId(financialPaymentId);
            DataToModel(dataAccessLayer, model);

            return(model);
        }
コード例 #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:
        //  financialPaymentId: primary key of table financial_payment
        public CrudeFinancialPaymentContract FetchByFinancialPaymentId(System.Guid financialPaymentId)
        {
            var dataAccessLayer = new CrudeFinancialPaymentData();
            var contract        = new CrudeFinancialPaymentContract();

            dataAccessLayer.FetchByFinancialPaymentId(financialPaymentId);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }