var vendors = from v in Vendors select new { Code = SqlFunctions.StringConvert((double)v.VendorId) };