I have a sqlserver table that has a timestamp column, I’m trying tou use it for filter a linq query like this:
byte[] filtroTimeStamp = SessionBag.Current.mesasTimeStamp;
var ubicAbiertas = from uA in db.TableA
select uA;
ubicAbiertas = ubicAbiertas.Where(
y => y.BitAbierta == true
& y.BitBloqueada == true
& y.TimeStampUltimoCambio == filtroTimeStamp);
When I try this way it shows an error:
operator & can’t be applied to operands of type bool and byte[]
How can I do to use Byte[] values as a filter of linq Query?
That should be && (two not one ampersand), e.g.