i'm using entityframework 5 and i've noticed that if i load a object from my db using linq my result object is stored on dbcontext, but if i whant to load the same object using the ExecuteStoreQuery, the result is not stored on db context.
is this the expecte behavior? or what could i do to maintain the result of secon way query con dbcontext?
1st way (LINQ):
var obj = dbcontext.table.where(o=> o.id == queryId).FirstOrDefault();
2nd way (ExecuteStoreQuery):
var obj = dbcontext.executestorequery("select * from...").FirstOrDefault();