Filter a list results in call to Oracle
Posted: Fri 21 Oct 2011 10:45
Hello,
I have a list of items and I want to filter them. First time I fill the list like this:
When a users types in text in a textBox, after every typed-in character I call:
I assumed that only the first time the query would actually go to Oracle to get the list of users. But, when I look in dbMonitor, I see that the query is sent to Oracle repeatedly: for every character I type in the textBox.
Off course this is not what I want.
Is this meant to be?
Thanks in advance.[/code]
I have a list of items and I want to filter them. First time I fill the list like this:
Code: Select all
var q = from c in DB.V_CT_GBRK
orderby c.NAME
select c;
Code: Select all
var q = from c in DB.V_CT_GBRK
where c.NAME.ToUpper().StartsWith(filter_ipar.ToUpper())
orderby c.NAME
select c;
Off course this is not what I want.
Is this meant to be?
Thanks in advance.[/code]