This question is locked. New answers and comments are not allowed.
Hi,
So far I am liking the open access framework but I'm having some trouble. Say I have a list of employee objects.
List<Employee> which are persistable. Using the api I add them to my scope.
scope.transaction.begin()
scope.add(employee)
scope.transaction.commit()
if I then do this.. employee.manager = "newManager";
I get an error. I read up on the disconnected api but don't want to have to add my objects to a objectContainer since I was only able to make it work by adding them within a scope transaction.
I simply want to create or load new employee objects, make changes and persist them back to the DB. I could keep a scope transaction open till I call a Save() method but wouldn't this use up resources? What if I want to use a service approach and send modified employee objects over a channel to have them updated? Also what if my objects properties are databound to ui elements, I will get errors because i'm not in active transaction. Please advise.
Thanks and keep up the good work!
So far I am liking the open access framework but I'm having some trouble. Say I have a list of employee objects.
List<Employee> which are persistable. Using the api I add them to my scope.
scope.transaction.begin()
scope.add(employee)
scope.transaction.commit()
if I then do this.. employee.manager = "newManager";
I get an error. I read up on the disconnected api but don't want to have to add my objects to a objectContainer since I was only able to make it work by adding them within a scope transaction.
I simply want to create or load new employee objects, make changes and persist them back to the DB. I could keep a scope transaction open till I call a Save() method but wouldn't this use up resources? What if I want to use a service approach and send modified employee objects over a channel to have them updated? Also what if my objects properties are databound to ui elements, I will get errors because i'm not in active transaction. Please advise.
Thanks and keep up the good work!