Searching a database column RRS feed

  • Question

  • User-808702305 posted

    return View(db.AllTitles.Where(x => x.BookName.StartsWith(search) || search == null).ToList());

    Here I used "StartsWith" function but this is not much efficient. It only gets the results which starts with the typed letters. Is there any function I can use here that searches and gives me the results of matching words for a search?

    Saturday, January 27, 2018 1:42 AM

All replies