I have one table as below
ID Code
1 9198
2 9194
3 91989
4 91900
5 918907
I have this table ready now what i want to do is that like i have one value 919898989898 and from this value i get the below result from the table
Result
ID Code
1 9198
and if i pass 91989000155363 then result should be
Result
ID Code
3 91989
i want this kind of query in linq to sql that will match maximum char of given value match with database table.
Code.StartsWith(x)in C#, orCode LIKE '%' + xin SQL?