A
Andrus
The following code fails:
CompaniesDetails c2 = (from c in db.CompaniesDetails where c.CompanyID
== comp.ID select c).Single();
"comp" is an instance of class Company:
public class Company
{
public int ID;
{
get;
set;
}
DLinq provider does not know what comp is in runtime.
So compiler must replace comp.ID with value when creating expression.
Any idea how to fix this ?
Andrus.
CompaniesDetails c2 = (from c in db.CompaniesDetails where c.CompanyID
== comp.ID select c).Single();
"comp" is an instance of class Company:
public class Company
{
public int ID;
{
get;
set;
}
DLinq provider does not know what comp is in runtime.
So compiler must replace comp.ID with value when creating expression.
Any idea how to fix this ?
Andrus.