table a,table b
first a.load();
then find a with include "b"
here i update b with sql in sqlserver managerment
if I use objectContext.Refresh(RefreshMode.StoreWins, b.Local); I can get the new b items with a;
I use the generic repository,in my find fuction my code like :
first a.load();
then find a with include "b"
here i update b with sql in sqlserver managerment
if I use objectContext.Refresh(RefreshMode.StoreWins, b.Local); I can get the new b items with a;
I use the generic repository,in my find fuction my code like :
var query = ctx.Set<T>().Where(t => true);
foreach (string include in includes)
{
query = query.Include(include);
query.Load();
}
query.Load();
result.Entities = query.Where(filter.Compile());
always not refresh the b object from database.