I'm a little (very) confused about the usage of the the following queries
This:
var query = from p in ctx.Persons
where x.Flat.Building.Id == 1 && x.Archived == false
select p;
And this:
var query = ctx.Persons.Where(x => x.Flat.Building.Id == 1 && x.Archived == false);
If I make some changes to the result of both queries and try to query them again, the 1st shows the old results, but the 2nd doesn't?
This answer tries to explain, but it is really confusing, at least for me.
EDIT Maybe my question doesn't be so clear as I expect but I'm going to try to focus.
My exact problem is if I use Query Sintax and made some changes over the data, and query again it doesn't load the fresh data. But in This answer The autor talks about if use Fluent Sintax this doesn´t happen.
Now here is my nigthmare why this happens with Query Sintax and doesn't with Fluent sintax?