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

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -