Linq To SQL Without Explicit Foreign Key Relationships

前端 未结 7 1513
陌清茗
陌清茗 2020-12-16 14:54

I am working with a few legacy tables that have relationships, but those relationships haven\'t been explicitly set as primary/foreign keys. I created a .dbml file using \"

7条回答
  •  天涯浪人
    2020-12-16 15:25

    Is this c#? I think you need == instead of = on this line:

    where c.CaseInfo.CaseInfoMeta = "some value"
    

    should read

    where c.CaseInfo.CaseInfoMeta == "some value"
    

提交回复
热议问题