예제 #1
0
 static Category[] GetDataCategory()
 {
     using (var db = new Northwind()){
         return(db.Categories.ToArray());
     }
 }
예제 #2
0
 static Product[] GetDataProduct()
 {
     using (var db = new Northwind()){
         return(db.Products.ToArray());
     }
 }