I am trying to save a new feature into a SQL Server gdb table. The process succeeds (editOperation.ExecuteAsync returns true) and I even get the new feature's globalID. But I cannot see the new feature in the table using SQL Server Management Studio (querying by globalID).
(I call Project.Current.SaveEditsAsync() after the code below.)
I have been following this https://github.com/Esri/arcgis-pro-sdk/blob/e79fbb738b32dd178c089a6b321e2098f8c9c069/Examples/Geodatabase/FeatureClass/FeatureClassCreateRow.cs#L85C15-L85C15
This is my code
using var gdb = new Geodatabase(SMARTConnectionsProvider.Connection);
using FeatureClass fc = gdb.OpenDataset<FeatureClass>(SMARTConnectionsProvider.SOMETABLE.TableName);
var editOperation = new EditOperation();
editOperation.Callback(context =>
{
using var rowBuffer = fc.CreateRowBuffer();
rowBuffer[SMARTConnectionsProvider.SOMETABLE.Fields.RANGEID] = rangeId;
rowBuffer[SMARTConnectionsProvider.SOMETABLE.Fields.SID] = smalId;
rowBuffer[SMARTConnectionsProvider.SOMETABLE.Fields.SHAPE] = geometry;
var newFeature = fc.CreateRow(rowBuffer);
Log.Information($"GLOBALID {newFeature.GetGlobalID()}");
}, fc);
return await editOperation.ExecuteAsync();