Пример #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);
 }