I have following code:
var operation = new EditOperation
Name = "Test edit operation",
ShowModalMessageAfterFailure = false,
EditOperationType = EditOperationType.Long,
CancelMessage = null,
ProgressMessage = null,
ShowProgressor = false
// I never get here if fc is a feature class from SDE database
If fc is a feature class from SDE database I never fall to callback's body. If feature class is from FGDB all is OK. What am I doing wrong?
I'm taking a feature class from Geodatabase returned by GDBProjectItem.GetDatastore.
Sorry, I haven't messed with the Datastore object yet.
This works for an SDE layer that isn't in the map:
Geodatabase geodatabase = new Geodatabase(new DatabaseConnectionFile(new Uri(" [full path to connection file] ")));
var fc = geodatabase.OpenDataset<FeatureClass>(" [featureClass name] ") as FeatureClass;