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.



Share this post

Link to post
Share on other sites

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



Share this post

Link to post
Share on other sites

How would one modify the code to get similar results for an Update method?

Currently, the method goes as follows:


"AdoRecordSetHelper.getProperties().Item("Unique Table").setValue("table");"



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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