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.
有谁知道如何使用模型的“映射详细信息”选项中的“条件”功能。
我尝试添加“IsDeleted = False”或“IsDeleted = 0”等条件,但没有任何效果。只是得到错误。
非常感谢。
似乎不能使用映射属性。一旦我删除它,条件就起作用了。然而,这意味着无法通过 EF 更新此属性,而必须通过 ExecuteStoreCommand 使用原始 DDL。
希望这可以帮助某人。这让我摸不着头脑!!