// insert all object members as a new row in table, in 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/542f9458-c3b9-4edf-8575-0870086f3a7f public void Insert(CrudeProductIdentifierContract contract, SqlConnection connection, SqlTransaction transaction) { var data = new CrudeProductIdentifierData(); ContractToData(contract, data); data.Insert(connection, transaction); }
// insert all object members as a new row in table // links: // docLink: http://sql2x.org/documentationLink/75aad010-e6aa-4f19-a6e5-597456aa20d8 public void Insert(CrudeProductIdentifierContract contract) { var data = new CrudeProductIdentifierData(); ContractToData(contract, data); data.Insert(); }