- Arcady Abramov
- SnapDevelop
- Sunday, 16 July 2023 09:29 AM UTC
Hello, Team
It is unclear to me how to use DataContext.Commit in SnapDevelop.
I had the following code in PB.
//*******************************************
ds1 = create datastore
ds1.setTransobject(sqlca)
ds1.retrieve()
/// some code
ds1.update()
commit;
//*********************************************
In c# it looks like this:
DataStore ds1 = new DataStore(DataContext ctx)
ds1.retrieve()
/// some code
ds1.update()
ctx.Commit()
In C# commit throws exception "transaction not started". What does it mean exactly?
Connection to the DB definitely exists, retrieves are passed normally and data is being retrieved from the DB.
Is there an actual problem? How to workaround it?
Thank you
Arcady
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.