-2
.emaxf 파일을 생성 한 후 mvc4.0, enityframework 4.2.1, C#을 사용하여 아래 코드로 컨텍스트 개체를 IEnumerable로 캐스팅하려고 시도했습니다.IEnumerable을 System.Data.Objects.ObjectSet로 변환하는 중 오류가 발생했습니다.
IEnumerable<TransactionsModel> pro = (IEnumerable<TransactionsModel>) x.ToList();
그러나 나는 다음과 같은 오류
Unable to cast object of type 'System.Data.Objects.ObjectSet`1[MCLInventory.Models.Projects]'
to type 'System.Collections.Generic.IList`1[System.String]'.
에게
감사합니다() 자체를 호출 ToList에 실패하는 것처럼 Bhanu 프라 카쉬 Inturi