// update all object members on a row in table based on primary key, on a transaction
        // the transaction and or connection state is not changed in any way other than what SqlClient does to it.
        // it is the callers responsibility to commit or rollback the transaction
        // links:
        //  docLink: http://sql2x.org/documentationLink/b798ad6b-f4b8-466a-9086-6588a814fcf3
        public void Update(CrudeServiceCarRentalContract contract, SqlConnection connection, SqlTransaction transaction)
        {
            var data = new CrudeServiceCarRentalData();

            ContractToData(contract, data);
            data.Update(connection, transaction);
        }
Exemplo n.º 2
0
        // transfer model to data and update, on a transaction
        // links:
        //  docLink: http://sql2x.org/documentationLink/aa07e05b-edc8-4e09-bf93-bf2a40c93c09
        public void Update(CrudeServiceCarRentalModel model, SqlConnection connection, SqlTransaction transaction)
        {
            var data = new CrudeServiceCarRentalData();

            ModelToData(model, data);
            data.Update(connection, transaction);
        }
        // update all object members on a row in table based on primary key
        // links:
        //  docLink: http://sql2x.org/documentationLink/ce75e72e-fb16-4f4e-a2e6-dbd079dfa206
        public void Update(CrudeServiceCarRentalContract contract)
        {
            var data = new CrudeServiceCarRentalData();

            ContractToData(contract, data);
            data.Update();
        }
Exemplo n.º 4
0
        // transfer model to data and update
        // links:
        //  docLink: http://sql2x.org/documentationLink/658fda50-2ad3-414e-9299-2b399d17a057
        public void Update(CrudeServiceCarRentalModel model)
        {
            var data = new CrudeServiceCarRentalData();

            ModelToData(model, data);
            data.Update();
        }