S
shapper
Hello,
I have a sub query in a Linq query:
var data = (from a in database.A
select new B {
B1 = (from b in database.B
join b in database.B on a.AID equals
b.AID
select b).ToList(),
B2 = ?????????
}).ToList();
I want B2 to be a conversion of B1 to Array.
So B2 = B1.ToArray();
But is it possible to make this in the Linq query?
In SQL I would give a name to the table produced by the Sub Query and
then I would use that.
Thanks,
Miguel
I have a sub query in a Linq query:
var data = (from a in database.A
select new B {
B1 = (from b in database.B
join b in database.B on a.AID equals
b.AID
select b).ToList(),
B2 = ?????????
}).ToList();
I want B2 to be a conversion of B1 to Array.
So B2 = B1.ToArray();
But is it possible to make this in the Linq query?
In SQL I would give a name to the table produced by the Sub Query and
then I would use that.
Thanks,
Miguel