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.
データベースでデータを直接編集すると、変更されたフィールドが で更新されENTITY FRAMEWORK CONTEXTず、新しい行と削除された行のみが更新されます。(ObjectContextワークフロー全体で 1 つを使用)
ENTITY FRAMEWORK CONTEXT
ObjectContext
それが他の誰かを助ける場合-Context.RefreshはEF 6.0にはもう存在しないようです。
代わりに私にとってうまくいくのは:
Context.Entry(WhatYouNeedToRefresh).Reload();