1
Reply

LINQ to MySql

asaf maimon

asaf maimon

Oct 4 2010 4:05 PM
16.6k

Hi everyone
I try to get a data from MySql db using LINQ but I think that something is missing.
in every example that I saw its the same.
well I look at the LINQ query and it all understood except how I tell the compiler in which db to search for.
for instance...
 Dim q = From e In db.Employees _
            Select New Name With {.FirstName = e.FirstName, .LastName = e.LastName}o
how the compiler should know what is db.Employee???
Thank you all..

Answers (1)