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


Top 5 Contributors of the Month
Kaviya Balasubramanian
Sgraph Infotech
Imran Ghani
Post New Web Links

hasvalue??

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

Categories: 
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