开发者

LINQ problem: FK-Table not set correctly

I have 3 Tables.

Guilds, Kills, Faction.

1 Guild = x Kills, 1 Guild = X Factions.

All FK are correctly set in database.

Now, when I try to d开发者_JS百科o a Query like "from a in dc.guilds where a.kills.Killd = X select a" it is not possible, because the table kills is not set as "kills", it is set as "EntitySet(Kills)".

http://s3.imgimg.de/uploads/1624074f5png.png

When I try to do the same with the faction, it forks.

Whats my problem?


I think you want

where a.kills.Any(k => k.KillId == X)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜