I was wondering with Entity Framework 4.1 code first how do you guys handle queries that involve an existing aspnet_Users table?
基本 我需要一个涉及蚊帐的查询。 • 用户,以便我能够归还用户名称:
SELECT t.Prop1, u.Username
FROM Table1 t
INNER JOIN aspnet_User u ON t.UserId = u.UserId
Where t.Prop2 = true
我想:
from t in context.Table1
join u in context.aspnet_Users on t.UserId equals u.UserId
where t.Prop2 = true
但我不敢肯定如何获得蚊帐。 用户对某类用户的绘图? • 我如何做因特网 部分用户?
Any help would be appreciated, thanks in advance