Beispiel #1
0
 public IEnumerable<Customer> GetCustomers()
 {
     //Automatic change tracking is enabled by default when deserialising.
     //This is turned off to give the same behaviour as offline. Deletions have to be tracked manually anyway.
     using (var repositoryService = new RepositoryServiceClient())
         return ((IEnumerable<Customer>)repositoryService.GetCustomers()).StopTrackingAll();
 }
Beispiel #2
0
 public IEnumerable <Customer> GetCustomers()
 {
     //Automatic change tracking is enabled by default when deserialising.
     //This is turned off to give the same behaviour as offline. Deletions have to be tracked manually anyway.
     using (var repositoryService = new RepositoryServiceClient())
         return(((IEnumerable <Customer>)repositoryService.GetCustomers()).StopTrackingAll());
 }
Beispiel #3
0
 public int SaveChanges(IEnumerable<Customer> customers, IEnumerable<Order> orders)
 {
     using (var repositoryService = new RepositoryServiceClient())
         return repositoryService.SaveChanges(customers.ToArray(), orders.ToArray());
 }
Beispiel #4
0
 public int SaveChanges(IEnumerable <Customer> customers, IEnumerable <Order> orders)
 {
     using (var repositoryService = new RepositoryServiceClient())
         return(repositoryService.SaveChanges(customers.ToArray(), orders.ToArray()));
 }