Equivalent linq
Hi Shak Imran,Welcome to MSDN Forum.Please try the query statement belowvar query = from p in context.Players let t = (string.IsNullOrEmpty(p.ID.ToString().Substring(p.ID.ToString().Length - 3,...
View ArticleEquivalent linq
Hi yoyo,Here RIGHT is built in sql function and 'sp' is a prefix string, you can consider following,select RIGHT('000'+Convert(varchar,ISNULl(Max( Convert(integer,RIGHT(SupplierId, 3))),0)+1 ),3)...
View ArticleEquivalent linq
regarding linq2sql, i think you can use ternary operator "?:" to do this.for example ISNULL, you can write XXXX?YYYY:ZZZZ...
View ArticleEquivalent linq
Hi Shak, Welcome to the MSDN forum!Would you please tell us the purpose of the SQL statement?What are 'SP' and 'RIGHT'?Would you please tell us the structure of the table so that we can run the...
View ArticleEquivalent linq
Hi,You can use the LINKER tool to convert to sql to linq, following is the linkhttp://www.sqltolinq.com/A nice article on how to use...
View ArticleEquivalent linq
Hi,I need equivalent linq of,select 'SP'+ RIGHT('000'+Convert(varchar,ISNULl(Max( Convert(integer,RIGHT(SupplierId, 3))),0)+1 ),3) from TblSupplierswhere SupplierId is column name and TblSuppliers is...
View Article
More Pages to Explore .....