I have a data base table with columns FirstName and Last Name and I have to make a search where the input is the full name. I'm working in c# with entities framework. I'm using the following code:
var user = context.User.Where(i => i.FirstName + " " + i.LastName == fullName)
Is there a better or more elegant way of doing this?
I thought of doing split to the fullName but there are first names and last names made of more than one word which seems to make the search very awkward.