A
Andrus
In Winform RDLC reports running in local mode I use expressions like
=Customer.GetName(Fields!CustiId.Value)
GetName() family of functions are implemented in static assembly
(CodeModule) as
public static string GetName(string id) {
var q= from k in db.Customers
where k.id==id
select k;
foreach (Customer xx in q)
return xx.Name;
return "";
}
There are large number of such methods, for every table and for every
column.
during report rendering ReportViewer makes a lot of calls to GetName(), many
of which are duplicate.
Each call causes data baccess over internet. Report rendering is very slow.
How to force LINQ to cache results?
Andrus.
=Customer.GetName(Fields!CustiId.Value)
GetName() family of functions are implemented in static assembly
(CodeModule) as
public static string GetName(string id) {
var q= from k in db.Customers
where k.id==id
select k;
foreach (Customer xx in q)
return xx.Name;
return "";
}
There are large number of such methods, for every table and for every
column.
during report rendering ReportViewer makes a lot of calls to GetName(), many
of which are duplicate.
Each call causes data baccess over internet. Report rendering is very slow.
How to force LINQ to cache results?
Andrus.