Linq to SQL Weird Error -


i getting error: could not format node 'column' execution sql

when trying make anonymous type:

 select new  {      nountypename = nt.name,      attributes =      (          in nt.nountypeattributes          group a.attribute g          select new {               nountypeid = nt.nountypeid,               key = g.key + " (" + g.count() + ")",               nountypeattributeid =                   (from in g select i.nountypeattributeid)                   .take(1).singleordefault(), count = g.count()          }      )  }); 

the problem comes when add nountypeid property in anonymous type.

might recommend loading nountypes , nountypeattributes local memory, , shaping?

customdatacontext mydc = new customdatacontext(); dataloadoptions myoptions = new dataloadoptions(); myoptions.loadwith<nountype>(nt => nt.nountypeattributes); mydc.loadoptions = myoptions;  list<nountype> thenountypes = (   nt in mydc.nountypes   //todo filterexpression   select nt ).tolist();  var queryresult = nt in thenountypes   select new ... 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -