在我的SQL Server数据库表中,我有一个binary
列类型。
我无法执行查询,为什么?
var data = (from x in model.MyTable
where x.BinaryColumn[0] == 1
select x).FirstOrDefault();
我遇到了 The LINQ expression node type 'ArrayIndex' is not supported in LINQ to Entities
错误。
BinaryColumn
的类型是什么? - haim770byte[]
类型。 - TonySUBSTRING(BinaryColumn, 1, 1)
来检索它。 - xanatos