.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links


Posted By:      Posted Date: August 31, 2010    Points: 0   Category :ASP.Net
 Dear all,   I have written the LINQ as below. But it prompt error when I uncomment below OnlyStockPicked statement Is there any problem in this line??? p.Description field is varchar(60) in Table ABC.   public List<ABC> getABC( .... bool? OnlyStockPicked){ ........ return (from p in DBTable.ABCwhere.... && (!OnlyStockPicked.HasValue || (OnlyStockPicked.Value == true ? p.Description != null : (p.Description == null || p.Description == string.Empty)))   // This Line has problem??select New ABC{.......... }).ToList(); }

View Complete Post

More Related Resource Links

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend