예제 #1
0
        public Query UpdateQuery(IRepositoryLocator locator, Query updatedQuery)
        {
            var parameters = ExtractParameters(updatedQuery);
            updatedQuery.AssociateParameters(parameters);

            return locator.Update(updatedQuery);
        }
예제 #2
0
 public void Update(IRepositoryLocator locator, CustomerDto operation)
 {
     UpdateValidate(locator, operation);
     FirstName = operation.FirstName;
     LastName  = operation.LastName;
     Telephone = operation.Telephone;
     locator.Update(this);
 }
예제 #3
0
 public void Update(IRepositoryLocator locator, CustomerDto operation)
 {
     UpdateValidate(locator, operation);
     FirstName = operation.FirstName;
     LastName = operation.LastName;
     Telephone = operation.Telephone;
     locator.Update(this);
 }
예제 #4
0
 public virtual void Update(IRepositoryLocator locator, CustomerDto operation)
 {
     ValidateOperation(locator, operation);
     CheckForDuplicates(locator, operation);
     FirstName = operation.FirstName;
     LastName  = operation.LastName;
     Telephone = operation.Telephone;
     locator.Update(this);
 }
예제 #5
0
 public virtual void Update(IRepositoryLocator locator, AddressDto operation)
 {
     UpdateValidate(locator, operation);
     Street   = operation.Street;
     City     = operation.City;
     PostCode = operation.PostCode;
     Country  = operation.Country;
     locator.Update(this);
 }