Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这里我的情况很简单,我需要获取一个对象的属性。问题是对象仍在内存中,我没有应用 SaveChanges() 所以我无法查询数据库。所以我需要查询实体内的缓存对象。我怎样才能做到这一点 ?
提前致谢..!
使用该DbSet.Local物业。
DbSet.Local
请参阅MSDN。