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.
MVC で SQL 関数を実行するにはどうすればよいですか?
関数を返すテーブルの結果を、定義したクラスにリンクしようとしています。接続文字列を設定し、public DbSet<Classname> variable{get; set;}これを関数の結果にリンクする方法を使用してデータベース コンテキストを作成しました
public DbSet<Classname> variable{get; set;}
Entity Framework を使用していますか? ここにあなたが読むことができる記事があります:
http://rationalgeek.com/blog/function-imports/