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