0
請我我有我的代碼行此錯誤ASP.NET MVC - 不能char類型隱式轉換爲字符串
public string RegistrationGuideline(string guidelineMessage)
{
if (!string.IsNullOrEmpty(guidelineMessage))
{
var guideline_mess = _optionRepository.FindAll().Where(c => c.OPTION_NAME == "guideline_message").Single(c => c.OPTION_ONE == "guidelineMessage");//option_message.Where(c => c.Item2 == guidelineMessage);
if (guideline_mess != null)
{
var guidelineMess = guideline_mess.OPTION_VALUE.FirstOrDefault();//guideline_mess.Select(c => c.Item3).FirstOrDefault();
return guidelineMess;
}
}
return null;
}
哪裏有我聽錯了?我解決它
該行數你有錯誤? – AlameerAshraf
退貨指導原則; – daniel
因此,請檢查從上一行中的查詢中得出的結果,以及它的預期結果! – AlameerAshraf