예제 #1
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(CrudeProductExposeContract contract, SqlConnection connection, SqlTransaction transaction)
        {
            var data = new CrudeProductExposeData();

            ContractToData(contract, data);
            data.Update(connection, transaction);
        }
예제 #2
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(CrudeProductExposeContract contract)
        {
            var data = new CrudeProductExposeData();

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