我正在尝试使用Entity Framework为我的mvc4应用程序做一个简单的请求。我想从两个表中选择数据。
一个表位于Membership Provider模式中,而另一个表位于我的主表中。 SQL请求是:
select users.my_aspnet_users.name, invitations.sender from users.my_aspnet_users, invitations where invitations.sender = my_aspnet_users.id;
我知道如何为一个表选择数据,但在处理两个表时看起来不同,特别是当这些表不在同一个模式中时。
此外,我只为主模式生成了.edmx文件(即导入了模式)。会员提供商shema由System.Web.Security
直接使用。
非常感谢。
答案 0 :(得分:0)
我认为复杂的类型是你需要的