【问题标题】:linq with entity framework - translate from SQL带有实体框架的 linq - 从 SQL 转换
【发布时间】:2013-09-17 23:20:03
【问题描述】:

我想将以下请求翻译成带有实体框架的 linq:

SELECT * 
FROM productivite
INNER JOIN Clients
ON Clients.ClientName = productivite.action and Clients.Responsable ='resp1'

我该怎么做?

【问题讨论】:

标签: sql-server linq entity-framework-4


【解决方案1】:
var results = from p in productivite
              join c in clients on p.clientname equals c.action
              where c.responsable == "resp1"
              select p, c;

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-06-15
    • 2017-07-07
    • 2023-03-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-16
    • 1970-01-01
    相关资源
    最近更新 更多