Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
by
C#
byte[] ls = something;
var q = from x in db_contex.tbl_pay
        where x.fpni.ToArray() == ls
        select x;

it's return
Method 'Byte[] ToArray()' has no supported translation to SQL
Error;
"fpni" type is binary in sql.
thank's all

What I have tried:

<pre lang="c#">
byte[] ls = something;
var q = from x in db_contex.tbl_pay
        where x.fpni.ToArray() == ls
        select x;
Posted
Updated 3-Apr-17 8:14am
v2
Comments
Bernhard Hiller 4-Apr-17 3:30am    
When fpni is a byte[] anyway, why do call ToArray() then?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900