Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はエンティティ フレームワークが初めてで、Entity Framework を使用してビジネス レイヤーで SP を呼び出す方法を知りたいです。
最初に、[SP の追加/編集] ウィザードを選択して、ストアド プロシージャを追加する必要があります。
その後、関数のインポートを追加する必要があります。
同じウィザードで、ストアド プロシージャの結果セットである新しい複合型を追加しました。
複合型がSP_ComplexType関数インポート名SP_Funcであると仮定すると、次のように使用できます。
SP_ComplexType
SP_Func
var SP_ComplexType = entity.SP_Func.ToList();