Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is LINQ to SQL?
#1
I've been doing some research and I've been seeing many things about something called LINQ. It looks like a way to build complicated SQL queries but it is very hard to understand. Does anyone have any tips that would help LINQ make more sense?

I made my own query and I had this error pop up:
Cannot perform 'Like' operation on System.DateTime and System.String.

I don't understand why I get this error but this is my code.
Code:
Private Sub txtOrder_TextChanged(sender As System.Object, e As System.EventArgs) Handles txtOrder.TextChanged
        If txtOrder.TextLength > 0 Then
            All_flood_certsBindingSource.Filter = String.Format("[Order Received] Like '" & txtOrder.Text) & "'"
        Else
            All_flood_certsBindingSource.Filter = String.Empty
        End If
    End Sub


Messages In This Thread
What is LINQ to SQL? - by Moldraxian - 08-20-2012, 05:38 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)