How can I do a LINQ to SQL join without an exact match? For example, say I have a table form
with the data John Smith (2)
and I want to join it to the field Smith
in table name
. Something like this
var query =
from f in db.form
join n in db.name
on f.nameField like '%' + n.firstName + '%'
Although the like
keyword doesn't seem to be available to me.