/// <summary>Inserts a VolumeCategory record using Metadata Parameters.</summary> /// <param name="parameters">Contains the metadata parameters.</param> public static void Archive(ParameterList parameters) { // Extract the parameters from the command batch. AdoTransaction adoTransaction = parameters["adoTransaction"]; SqlTransaction sqlTransaction = parameters["sqlTransaction"]; long rowVersion = parameters["rowVersion"]; int volumeCategoryId = parameters["volumeCategoryId"]; // Call the internal method to complete the operation. VolumeCategory.Archive(adoTransaction, sqlTransaction, rowVersion, volumeCategoryId); }
/// <summary>Inserts a VolumeCategory 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"]; object description = parameters["description"].Value; object externalId0 = parameters["externalId0"].Value; object highVolumeRange = parameters["highVolumeRange"].Value; object lowVolumeRange = parameters["lowVolumeRange"].Value; object mnemonic = parameters["mnemonic"].Value; int volumeCategoryId = parameters["volumeCategoryId"]; // Call the internal method to complete the operation. VolumeCategory.Update(adoTransaction, sqlTransaction, ref rowVersion, description, externalId0, highVolumeRange, lowVolumeRange, mnemonic, volumeCategoryId); // Return values. parameters["rowVersion"] = rowVersion; }
/// <summary>Inserts a VolumeCategory record using Metadata Parameters.</summary> /// <param name="parameters">Contains the metadata parameters.</param> public static void Insert(ParameterList parameters) { // Extract the parameters from the command batch. AdoTransaction adoTransaction = parameters["adoTransaction"]; SqlTransaction sqlTransaction = parameters["sqlTransaction"]; object description = parameters["description"].Value; object externalId0 = parameters["externalId0"].Value; object highVolumeRange = parameters["highVolumeRange"].Value; decimal lowVolumeRange = parameters["lowVolumeRange"]; string mnemonic = parameters["mnemonic"]; // The rowVersion is passed back to the caller in the event it's needed for additional commands in the batch. long rowVersion = long.MinValue; // Call the internal method to complete the operation. int volumeCategoryId = VolumeCategory.Insert(adoTransaction, sqlTransaction, ref rowVersion, description, externalId0, highVolumeRange, lowVolumeRange, mnemonic); // Return values. parameters["rowVersion"] = rowVersion; parameters.Return = volumeCategoryId; }