This question is locked. New answers and comments are not allowed.
Hey all,
I'm a long time user and advocate of the AJAX controls for .ASP.
We're rewriting an application into MVC and need to use an interim ORM solution, we have things working fine on Entity Framework but wanted to explore Open Access to be thorough.
We are caching all objects, to speed up access through out the system. dbContext.SaveChanges() doesn't seem able to save a persistence object if it's pulled from cache, even though the data of the object is changed after it's pulled from the Cache.
The SaveChanges method commits nothing to the database, and the GetChanges method reports back nothing that is dirty.
When retrieving a fresh object from the database prior to updating, the changes are committed as expected.
Is this a known bug? Feature by design? Is there a performance boost in Open Access to make this a non-issue. To be fair I can't see a data query from the database being faster than a pull from memory; but it's worth asking the question :)
Thanks!
I'm a long time user and advocate of the AJAX controls for .ASP.
We're rewriting an application into MVC and need to use an interim ORM solution, we have things working fine on Entity Framework but wanted to explore Open Access to be thorough.
We are caching all objects, to speed up access through out the system. dbContext.SaveChanges() doesn't seem able to save a persistence object if it's pulled from cache, even though the data of the object is changed after it's pulled from the Cache.
The SaveChanges method commits nothing to the database, and the GetChanges method reports back nothing that is dirty.
When retrieving a fresh object from the database prior to updating, the changes are committed as expected.
Is this a known bug? Feature by design? Is there a performance boost in Open Access to make this a non-issue. To be fair I can't see a data query from the database being faster than a pull from memory; but it's worth asking the question :)
Thanks!