Hi,
I already posted this question and I received the answers.Thanks for the replies.
I have a varchar column in a table. I want to fetch max val of this column so I convert this to int,if the table is empty how to convert.Pls help.
var RepWidgetVal = (from o in context.ReportWidgets
select Convert.ToInt32(o.WidgetID)).Max();