Esempio n. 1
0
 public static IEnumerable<Customer> GetCustomers()
 {
     var myDB = new POCEntities();
     var query =
         from c in myDB.Customers
         select c;
     return query.ToList();
 }
Esempio n. 2
0
 public static void InsertCustomer(Customer customer)
 {
     var myDB = new POCEntities();
     myDB.Customers.Add(customer);
     myDB.SaveChanges();
 }