2
I have in my database the table t_command_control
.
This table has a composite primary key formed by the fields CD_STATION
and CD_COMMAND
.
If the primary key was simple (only as a field CD_STATION
) i would use the expression below to select the record I need.
Entities db = new Entities();
t_command_control objCommandControl = db.t_command_control.FirstOrDefault(e => e.CD_STATION == itCdStation);
But being the composite primary key I don’t know how to select.