0
我使用實體框架來獲取來自SQL一個int但是當我打開瀏覽器輸入字符串的不實體框架正確的格式
「輸入字符串的不正確的我得到這個錯誤格式」
代碼:
string DailyRatee = entity.CarsCategories
.Where(x => x.ID == CatId)
.Select(p => p.DailyRate).ToString();
int DailyRate = int.Parse(DailyRatee);
任何幫助,將不勝感激
你甚至試圖調試這個,看看錯誤是什麼? – DavidG