/// <summary>Inserts a TraderVolumeSetting 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 externalId0 = parameters["externalId0"].Value; decimal autoExecuteQuantity = parameters["autoExecuteQuantity"]; decimal thresholdQuantity = parameters["thresholdQuantity"]; int traderId = parameters["traderId"]; int volumeCategoryId = parameters["volumeCategoryId"]; // 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 traderVolumeSettingId = TraderVolumeSetting.Insert(adoTransaction, sqlTransaction, ref rowVersion, externalId0, autoExecuteQuantity, thresholdQuantity, traderId, volumeCategoryId); // Return values. parameters["rowVersion"] = rowVersion; parameters.Return = traderVolumeSettingId; }