Jump to content

rs.Properties("Unique Table")


MichaelLotosh

Recommended Posts

Hi Olman,

We populate the recordset with a join of table1 and table2. In some other place in code we need to delete the record from table1. In order to do it we use rs.delete. Without rs.Properties("Unique Table") = "table1" the recordset will delete the records from both tables and not just table1.

Please let me know if it's still not clear.

Thanks,

Michael

Link to comment
Share on other sites

  • Mobilize.Net Staff

Hi Michael,

ADO.Net does not provide a direct way to achieve that, so the migrated code should be modified to get a similar result.
As the ADORecordsetHelper inherits from a Dataset, the properties of that class could be used:

Given rs is a ADORecordsetHelper you can try the following:
DataRow rowDel=ds.Tables["table1"].Rows[<IndexOfTheRowToDelete>];
rs.Tables["table1"].Rows.Remove(rowDel);
rs.Delete()
 

Cheers,

OlmanQ

Link to comment
Share on other sites

  • 9 months later...
  • 1 month later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use