Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I need equivalent linq of,
SQL
select 'SP'+ RIGHT('000'+Convert(varchar,ISNULl(Max( Convert(integer,RIGHT(SupplierId, 3))),0)+1 ),3) 
from TblSuppliers

where SupplierId is column name and TblSuppliers is table name
Posted
Updated 1-Jan-12 22:28pm
v2

1 solution

Not everything has to be done with LINQ; you can use stored procedures wth LINQ.

Stored Procedures (LINQ to SQL)[^]
 
Share this answer
 

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



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