Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Create a Search function in Blazor that looks up multiple entries in SQL

$
0
0

Apologies i cant provide the actual code for various reasons.

But i am trying to create a search function for multiple entries in a class

example

I have an Implemented task

public async Task<List<RequestList>> SearchRequestAsync(string searchItem){  return await context.RequestLists.Where(s => s.RequestName.ToString().Contains(searchItem)).ToListAsync();}

RequestName is one of the values in my Database

This works for that column, but i want to filter by multiple columns.

For context i am very new to this and am building and learning as i go.

In essence i tried to see if i could add the values in the RequestList List to another private List, but couldn't figure out how.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>