asp.net - How to get all rows on basis of a condition from entity framework -


i building website using mvc asp.net. in website when user clicks category, want find items having category foreign key entity framework database. came across method of find() doesn't fulfill requirement. want like

database1entities.categories.select(x => x.cat_id == id); 

but dont know exact way this. highly appreciated.

how using where()

database1entities.categories.where(x => x.cat_id == id); 

Comments

Popular posts from this blog

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - JavaScript + Thymeleaf - select onchange -

node.js - Using Node without global install -