How to filter Bados bank records in . NET Core?

Asked

Viewed 54 times

-1

I am new in . NET Core and have some things I curl up in. I created this list through dbcontext using dbset.

public IEnumerable ObterTodosEmpresas()
{
return WebPEDContexto.Set().ToList();
}

The list is large, and would need to filter by a type of information, ie, bring all the lines of the database, popular the list, but only when the records had the code 29 in the Typoempresaid field. How would you return the list, only records in this condition?

1 answer

1

  • Thank you Jaderson, I’ll try here. I’ll read the article too.

  • Great Luiz! If it helps you do not forget to mark the question as accepted. It will help others who have the same doubt as you.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.