Alright i have a table which contains 2 bigint column.
Example
val1 3213 12312
val2 13232 32322
.
.
.
select val from table where 3232 between col1 and col2
I need to use between operator to select single row data.
Now i tried dataview but it failed. Dataview is not supporting between operator.
like this
dwIpAddress.RowFilter = string.Format("{0} between CodeVal_1 and CodeVal_2", irParameter);
So which approach i can use ?
There are like 200000 data records.
Tried this and it is super slow
dwIpAddress.RowFilter = string.Format("CodeVal_1>= {0} and CodeVal_2<={0}", irParameter);
C# 4.0
have you tried
Also, since you mentioned you are using C# 4.0, there is the Entity Framework, which you could use instead of DataView. Something you may want to look into.
Also, if your DataView contains all records from your database table, then you may want to adjust your query so that it only gets the rows from the database that it needs, as opposed to returning all rows and then filtering in C# (if that’s what you are doing)