// transfer model to data and update, on a transaction
        // links:
        //  docLink: http://sql2x.org/documentationLink/aa07e05b-edc8-4e09-bf93-bf2a40c93c09
        public void Update(CrudeAirportFacilityModel model, SqlConnection connection, SqlTransaction transaction)
        {
            var data = new CrudeAirportFacilityData();

            ModelToData(model, data);
            data.Update(connection, transaction);
        }
Example #2
0
        // 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(CrudeAirportFacilityContract contract, SqlConnection connection, SqlTransaction transaction)
        {
            var data = new CrudeAirportFacilityData();

            ContractToData(contract, data);
            data.Update(connection, transaction);
        }
        // transfer model to data and update
        // links:
        //  docLink: http://sql2x.org/documentationLink/658fda50-2ad3-414e-9299-2b399d17a057
        public void Update(CrudeAirportFacilityModel model)
        {
            var data = new CrudeAirportFacilityData();

            ModelToData(model, data);
            data.Update();
        }
Example #4
0
        // 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(CrudeAirportFacilityContract contract)
        {
            var data = new CrudeAirportFacilityData();

            ContractToData(contract, data);
            data.Update();
        }