コード例 #1
0
        public static void UpdateCustomer(int customerId, Customer customer, UpdateCustomerDelegate updateCustomerDelegate)
        {
            SqlConnection connection = new SqlConnection(ConnectionString);

            connection.Open();

            updateCustomerDelegate(connection, customerId, customer);
            connection.Close();
        }
コード例 #2
0
        public void UpdateCustomer(int customerId, Customer customer)
        {
            UpdateCustomerDelegate delegateInstanceObj = new UpdateCustomerDelegate(PerformUpdate);

            CustomerRepository.UpdateCustomer(customerId, customer, delegateInstanceObj);
        }