2016年8月12日金曜日

EntityFrameWorkで1件 取得する方法

Singleを使ってデータにアクセスします.
context.Products.Single(x => x.name == "Test"); 
 

0 件のコメント:

コメントを投稿