I have this query.
levelnumber = (from b in bv.baLevels
where b.ba_Level_Code == ("0" + SqlFunctions.StringConvert((double)cl.Level_Num.Value)) && b.isActive == 1
select (b.ba_Level_Code + " - " + b.ba_Level_Desc)).FirstOrDefault(),
My Problem is b.ba_Level_Code is string.
cl.Level_Num is Int.
baLevels table I have this ba_Level_code value has 008
but cl is the BaCodeLibrary table this cl.Level_Num has 8
if I do the query with hardcoded value
levelnumber = (from b in bv.baLevels
where b.ba_Level_Code == "008" && b.isActive == 1
select (b.ba_Level_Code + " - " + b.ba_Level_Desc)).FirstOrDefault(),
how to display 008? cl.Level_Num I am getting has 8. I need to change that value to 008.
Thanks