English 中文(简体)
Join don t working in LINQ in Devexpress XPO
原标题:Join doesn t working in LINQ in Devexpress XPO

我曾经使用过抗药类,并沿用了LINQ 查询:

XPQuery<Students> objStudentQuery = new XPQuery<Students>(XpoDefault.Session);
XPQuery<ExamDetails> objExamDetailsQuery = new XPQuery<ExamDetails>(XpoDefault.Session);

var ExamDetails = from exm in objExamDetailsQuery
                          join student in objStudentQuery on exm.StudentId equals student.StudentId
                          select new { student.FirstName, student.LastName, exm.ExamName, exm.Marks, exm.Date };

但是,它留下了一个错误的说法。 “特定方法没有得到支持”

如何从使用XPO Persistance类的两张表格中获得数据?

增 编

问题回答

XPO does not provide capabilities to join data using standard SQL approaches. Instead, it provides an Associations concept. I suggest that you review the Specifics of joining data from multiple tables in XPO Knowledge Base article describing an XPO way of joining data.





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签