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

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -