mvc4.0、enityframework 4.2.1、c# を使用しています。.EDMX ファイルを生成した後、以下のコードでコンテキスト オブジェクトを IEnumerable にキャストしようとしました
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]'.
ありがとうバヌ・プラカシュ・イントゥリ