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
Post a Comment