I’m trying to update a database record using the EditOperation class, and I’m running into problems instantiating that class. It requires WPF, and I’m not sure about using that in a web application. When I try to create a EditOperation, I get the exception “The type initializer for 'ArcGIS.Desktop.Editing.EditingModule' threw an exception”.
Is there another way to update a row from a Table or FeatureClass? Perhaps equivalent to an InsertCursor? Has anyone run into this with C#?
We’re using C#, ArcGIS Pro SDK 2.9.
Hi,
For CoreHost applications, calls to editing methods should be enclosed within a call to Geodatabase.ApplyEdits.
Sample here: