// transfer model to data and update, on a transaction // links: // docLink: http://sql2x.org/documentationLink/aa07e05b-edc8-4e09-bf93-bf2a40c93c09 public void Update(CrudeTitleRefModel model, SqlConnection connection, SqlTransaction transaction) { var data = new CrudeTitleRefData(); ModelToData(model, data); data.Update(connection, transaction); }
// 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(CrudeTitleRefContract contract, SqlConnection connection, SqlTransaction transaction) { var data = new CrudeTitleRefData(); 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(CrudeTitleRefModel model) { var data = new CrudeTitleRefData(); ModelToData(model, data); data.Update(); }
// 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(CrudeTitleRefContract contract) { var data = new CrudeTitleRefData(); ContractToData(contract, data); data.Update(); }