Jump to content

rs.Properties("Unique Table")


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.



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>];



Link to comment
Share on other sites

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 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