c# - How to use FirstOrDefault for two primary keys -
there 2 primary key , b 1 key can compiled how 2 keys
var product = db.tmp_hello.firstordefault<tmp_hello>(instrmnt => (instrmnt.a == good.a; instrmnt.b == good.b));
use &&
operator in lambda.
var product = db.tmp_hello .firstordefault<tmp_hello>( instrmnt => instrmnt.a == good.a && instrmnt.b == good.b);
Comments
Post a Comment