R
Ryan Liu
Hi,
What is recommended patten for using entity framework in asp.net?
I mean, seems to me little bit inefficient to update an entity, first need
get it from db.
Or is that very bad idea to keep the object context in applicaton scope and
reuse it among sessions and multiple requests? Of couse, need handle race
situlation and need make sure database and datacontext are in sync.
Then any one need modify an entiy, no need fetch from db first.
Thanks,
Ryan
What is recommended patten for using entity framework in asp.net?
I mean, seems to me little bit inefficient to update an entity, first need
get it from db.
Or is that very bad idea to keep the object context in applicaton scope and
reuse it among sessions and multiple requests? Of couse, need handle race
situlation and need make sure database and datacontext are in sync.
Then any one need modify an entiy, no need fetch from db first.
Thanks,
Ryan