Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8563703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:01:17+00:00 2026-06-11T17:01:17+00:00

I know Where() searches through my database for anything that matches and returns me

  • 0

I know Where() searches through my database for anything that matches and returns me a list, however it matches whole words. How do you search through the database and find everything without matching whole words?

For example, the user wants to search for: funny

then my search function will return anything that has the word “funny” in it, such as

  • funnygirls
  • funnydogs
  • funnypeople
  • funnybikes; etc…

I implemented the Where(), but it doesn’t do the feature above? Is there any fixes? or any Alternatives?

Edit:

Context Code:

   public static List<PhotoAlbumDto> searchAlbumsFromDA(string inputName)
   {
       EzPrintsEntities db = new EzPrintsEntities();
       List<PhotoAlbum> albums = new List<PhotoAlbum>();
       albums = db.PhotoAlbums.Where(b => b.NAME == inputName).ToList();
   }

This returns me only things that match “funny” EXACTLY… so in other words, I can’t search up everything that only has the word “funny” in it, such as funnycats… Only “funny” will be returned, and nothing else.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T17:01:19+00:00Added an answer on June 11, 2026 at 5:01 pm

    Try something like

    albums = db.PhotoAlbums.Where(b => b.NAME.Contains("funny")).ToList();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am planning to implement database search through a website - I know there
I have a function that searches through an array of strings. It works perfectly,
Ok, I know similar questions have been asked, but my groveling through Google searches
I have a page that searches a database and generates the following array. I'd
Hi searched through the questions here, but couldn't find anything. I'm new at writing
I'm searching through some database search results on a website & trying to highlight
I'm making an app that searches through a dictionary after the user presses the
Searches in Sharepoint rely on SQL Server as far as I know. I have
I have what I know is a simple question, but after many searches in
I'm using PDO inside a database abstraction library function query that I've made. I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.