예제 #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();
 }
예제 #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());
 }
예제 #3
0
 public int SaveChanges(IEnumerable<Customer> customers, IEnumerable<Order> orders)
 {
     using (var repositoryService = new RepositoryServiceClient())
         return repositoryService.SaveChanges(customers.ToArray(), orders.ToArray());
 }
예제 #4
0
 public int SaveChanges(IEnumerable <Customer> customers, IEnumerable <Order> orders)
 {
     using (var repositoryService = new RepositoryServiceClient())
         return(repositoryService.SaveChanges(customers.ToArray(), orders.ToArray()));
 }