Efficient Search function with Linq to SQL
- by Bayonian
Hi,
I'm using VB.NET and Linq to SQL. I have a table with thousands of rows and growing. Right now I'm using .Contains() in the Where clause to perform the query. Below is my search function :
Public Shared Function DemoSearchFunction(ByVal keyword As String) As DataTable
Dim db As New BibleDataClassesDataContext()
Dim query = From b In…