MVC と Entity Framework に関するヘルプを探しています。ストアド プロシージャを Entity Framework にインポートしたところ、複雑な Name_Results のコレクションが返されました。
複雑な結果を呼び出してビュー ページに関連付けるにはどうすればよいですか? 通常のテーブル インポート モデルを使用して、ページを反復処理し、モデルを次のように参照できます。
@model IEnumerable<Project.Models.ImportedTableName>
しかし、私が言うとき
@model IEnumerable<Project.Models.ComplexName_Result>
次の行に沿ってエラーが発生します
The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[Project.Models.ImportedTableName]', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[Project.Models.ComplexName_Result]'.
何かアドバイス?ご協力ありがとうございました。