Mar 08, 2012, 4:50 PM
[CLOSED] v2.0 Store with linq anonymous type
Hi, in the 2.0 i have a problem with the Store binding in very slow whit the anonymous type, in V1.2 it's work ok.
This is very slow and retrive an error comunication failure when StoreComuni.databind(), the query work ok;
If define a Classe with the 3 field, it's work ok, the problem is the anonymous type..
Tanks
Aurelio
This is very slow and retrive an error comunication failure when StoreComuni.databind(), the query work ok;
var lstcomuni =
from t0 in database.CAPCOM
where (t0.CapComCom.StartsWith(pIniText))
select new
{
t0.CapComId,
t0.CapComCod,
t0.CapComCom
};
StoreComuni.DataSource = lstcomuni;
StoreComuni.DataBind();
This work ok, but select all the field from table: var lstcomuni =
from t0 in database.CAPCOM
where (t0.CapComCom.StartsWith(pIniText))
select (t0);
StoreComuni.DataSource = lstcomuni;
StoreComuni.DataBind();
The table content 10.000 record and is filter average 200 - 300 record for query.If define a Classe with the 3 field, it's work ok, the problem is the anonymous type..
Tanks
Aurelio
Last edited by Daniil; Mar 12, 2012 at 11:34 AM.
Reason: [CLOSED]