This question is locked. New answers and comments are not allowed.
I am the using 2009 Q2 ORM DLLs and I am needing to do a subquery to grab the Male and Female StrainIDs for each cage. This code looks good now, so hopefully it comes through without lots of linebreaks added to it. Any idea why I am getting a "not supported" error when I run this query.
var result = from c in ext
let StrainIdMale = scope.Extent<Animal>().Where(a => a.IdCage1 == c.IdCage).SingleOrDefault().Strain.StrainId
select new
{
c.IdCage,
Location = c.Location.Building + c.Location.Room,
StrainIdMale
};
Is LET not supported yet? If not, please recommend a work-around. Thanks.
var result = from c in ext
let StrainIdMale = scope.Extent<Animal>().Where(a => a.IdCage1 == c.IdCage).SingleOrDefault().Strain.StrainId
select new
{
c.IdCage,
Location = c.Location.Building + c.Location.Room,
StrainIdMale
};
Is LET not supported yet? If not, please recommend a work-around. Thanks.