llblgen Pro version 2.0 ,
Adapters,
Oracle,
.NET 2005
I bind the form objects to EntityCollection Apps with CurrencyManager.
private void UpdRec3()
{
DataAccessAdapter adapter = new DataAccessAdapter();
adapter.StartTransaction(IsolationLevel.ReadCommitted, "Updates");
try
{
this.Cursor = Cursors.WaitCursor;
Apps.Items[cm.Position].IsDirty = true;
Apps.Items[cm.Position].IsNew = false;
adapter.SaveEntityCollection(Apps, true, true);
adapter.Commit();
}
catch (System.Exception ex)
{
adapter.Rollback();
MessageBox.Show(ex.Message);
}
finally
{
adapter.Dispose();
this.Cursor = Cursors.Arrow;
}
}
it gives no error messages and continues as there is nothing wrong but the update couldn't be done.
But also try assigning values directly to the fields of the EntityCollection as;
Apps.Items[0].Fields[0].DbValue = "";
but it gives the following debugger Error;
Property or indexer 'SD.LLBLGen.Pro.ORMSupportClasses.IEntityFieldCore.DbValue' cannot be assigned to -- it is read only.
Thanks