Beispiel #1
0
 /// <summary>Collects the table lock request(s) for an Update operation</summary>
 /// <param name="adoTransaction">A list of locks required for this operation.</param>
 public static void Update(AdoTransaction adoTransaction)
 {
     // These table lock(s) are required for the 'Update' operation.
     adoTransaction.LockRequests.Add(new TableWriterRequest(ServerDataModel.Country));
     Account.UpdateChildren(adoTransaction);
     Security.UpdateChildren(adoTransaction);
     Holiday.Update(adoTransaction);
     Province.Update(adoTransaction);
 }
Beispiel #2
0
        /// <summary>Inserts a Holiday record using Metadata Parameters.</summary>
        /// <param name="parameters">Contains the metadata parameters.</param>
        public static void Update(ParameterList parameters)
        {
            // Extract the parameters from the command batch.
            AdoTransaction adoTransaction   = parameters["adoTransaction"];
            SqlTransaction sqlTransaction   = parameters["sqlTransaction"];
            long           rowVersion       = parameters["rowVersion"];
            int            holidayId        = parameters["holidayId"];
            object         countryId        = parameters["countryId"].Value;
            object         securityTypeCode = parameters["securityTypeCode"].Value;
            object         date             = parameters["date"].Value;
            object         holidayTypeCode  = parameters["holidayTypeCode"].Value;
            object         externalId0      = parameters["externalId0"].Value;
            object         externalId1      = parameters["externalId1"].Value;

            // Call the internal method to complete the operation.
            Holiday.Update(adoTransaction, sqlTransaction, ref rowVersion, holidayId, countryId, securityTypeCode, date, holidayTypeCode, externalId0, externalId1);
            // Return values.
            parameters["rowVersion"] = rowVersion;
        }
Beispiel #3
0
 /// <summary>Collects the table lock request(s) for an Update operation</summary>
 /// <param name="adoTransaction">A list of locks required for this operation.</param>
 public static void Update(AdoTransaction adoTransaction)
 {
     // These table lock(s) are required for the 'Update' operation.
     adoTransaction.LockRequests.Add(new TableWriterRequest(ServerDataModel.HolidayType));
     Holiday.Update(adoTransaction);
 }