I have following code:
var operation = new EditOperation
{
Name = "Test edit operation",
ShowModalMessageAfterFailure = false,
EditOperationType = EditOperationType.Long,
CancelMessage = null,
ProgressMessage = null,
ShowProgressor = false
};
operation.Callback(context =>
{
// I never get here if fc is a feature class from SDE database
},
fc);
operation.Execute();
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.
I'm assuming your SDE feature class is listed as "editable" in the List by Editing tab? Are you hydrating the fc variable from a map layer or from a geodatabase object?