title: Entity framework where clause
body: <p>I am newbie to EF how to use and - or in where clause in the entity framework </p>
  
  <pre><code>HR_ATTENDANCE_DEVICE_SHUTDOWN_TBL attendanceDeviceShutdownTbl = 
      context.HR_ATTENDANCE_DEVICE_SHUTDOWN_TBL
          .FirstOrDefault(x =&gt; x.Device_ID.Equals(model.DeviceId) &amp;&amp;
                               x=&gt;x.Device_Name=model.DeviceName);
  </code></pre>
  
  <p>the above code will not work but how can I make it works.</p>