Esempio n. 1
0
        public Query UpdateQuery(IRepositoryLocator locator, Query updatedQuery)
        {
            var parameters = ExtractParameters(updatedQuery);
            updatedQuery.AssociateParameters(parameters);

            return locator.Update(updatedQuery);
        }
Esempio n. 2
0
 public void Update(IRepositoryLocator locator, CustomerDto operation)
 {
     UpdateValidate(locator, operation);
     FirstName = operation.FirstName;
     LastName  = operation.LastName;
     Telephone = operation.Telephone;
     locator.Update(this);
 }
Esempio n. 3
0
 public void Update(IRepositoryLocator locator, CustomerDto operation)
 {
     UpdateValidate(locator, operation);
     FirstName = operation.FirstName;
     LastName = operation.LastName;
     Telephone = operation.Telephone;
     locator.Update(this);
 }
Esempio n. 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);
 }
Esempio n. 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);
 }