C# - How can I do a simple query in Entity Framework using lambda? -


i have entity framework model semi-working right now, i'm having trouble performing query return database records where() clause.

i trying line:

db.blackstoneusers.where(u => u.email == user.email);  

but exception:

expression cannot contain lambda expressions

i think should simple, i'm learning entity , linq/lambda.

does have pointers?

try setting email outside call

var email = user.email db.blackstoneusers.where(u => u.email == email);  

Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

php - Calling a template part from a post -

How to mention the localhost in android -