Click here to Skip to main content
11,429,154 members (53,723 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# SQL LINQ
Hi,

I need equivalent linq of,
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 1-Jan-12 23:27pm
Edited 1-Jan-12 23:28pm
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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

Stored Procedures (LINQ to SQL)[^]
  Permalink  

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



Advertise | Privacy | Mobile
Web04 | 2.8.150428.2 | Last Updated 2 Jan 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100