Select to view content in your preferred language

Refresh SDE Table or FeatureClass data from Cursors using C#.NET ArcObjects

543
1
Jump to solution
12-05-2019 08:43 PM
Vara_PrasadM_S
Occasional Contributor II

Hi Team,

There are two applications, one updates data and another one presents data to users. However, in the second application, the search cursor is always returning old data and the data at the time of the first-time table/feature class is opened. Though the cursor, feature class/table are released and reopened and though the workspace object is also released and reopened, it is not getting latest data.

Any suggestions would be very helpful.

Thanks in advance!

With Regards,

Vara Prasad

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Vara_PrasadM_S
Occasional Contributor II

It is achieved by using IVersion::RefreshVersion. QI IFeatureWorkspace to IVersion and then call RefreshVersion.

View solution in original post

0 Kudos
1 Reply
Vara_PrasadM_S
Occasional Contributor II

It is achieved by using IVersion::RefreshVersion. QI IFeatureWorkspace to IVersion and then call RefreshVersion.

0 Kudos