/// <summary>Inserts a TaxLot 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 accountId = parameters["accountId"].Value; object cost = parameters["cost"].Value; object externalId0 = parameters["externalId0"].Value; object externalId1 = parameters["externalId1"].Value; object externalId2 = parameters["externalId2"].Value; object externalId3 = parameters["externalId3"].Value; object localCost = parameters["localCost"].Value; object positionTypeCode = parameters["positionTypeCode"].Value; object quantity = parameters["quantity"].Value; object securityId = parameters["securityId"].Value; object settlementDate = parameters["settlementDate"].Value; int taxLotId = parameters["taxLotId"]; object tradeDate = parameters["tradeDate"].Value; object userData0 = parameters["userData0"].Value; object userData1 = parameters["userData1"].Value; object userData2 = parameters["userData2"].Value; object userData3 = parameters["userData3"].Value; object userData4 = parameters["userData4"].Value; object userData5 = parameters["userData5"].Value; object userData6 = parameters["userData6"].Value; object userData7 = parameters["userData7"].Value; // Call the internal method to complete the operation. TaxLot.Update(adoTransaction, sqlTransaction, ref rowVersion, accountId, cost, externalId0, externalId1, externalId2, externalId3, localCost, positionTypeCode, quantity, securityId, settlementDate, taxLotId, tradeDate, userData0, userData1, userData2, userData3, userData4, userData5, userData6, userData7); // Return values. parameters["rowVersion"] = rowVersion; }
/// <summary>Collects the table lock request(s) for an Update operation</summary> /// <param name="adoTransaction">A list of locks required for this operation.</param> internal new static void UpdateChildren(AdoTransaction adoTransaction) { // These table lock(s) are required for the 'Update' operation. adoTransaction.LockRequests.AddWriterLock(ServerMarketData.AccountLock); Allocation.Update(adoTransaction); Position.Update(adoTransaction); TaxLot.Update(adoTransaction); }
/// <summary>Collects the table lock request(s) for an Update operation</summary> /// <param name="adoTransaction">A list of locks required for this operation.</param> internal static void UpdateChildren(AdoTransaction adoTransaction) { // These table lock(s) are required for the 'Update' operation. adoTransaction.LockRequests.AddWriterLock(ServerMarketData.SecurityLock); AccountBase.UpdateChildren(adoTransaction); Allocation.Update(adoTransaction); Currency.UpdateChildren(adoTransaction); Debt.UpdateChildren(adoTransaction); Equity.UpdateChildren(adoTransaction); Position.Update(adoTransaction); Price.Update(adoTransaction); SourceOrder.Update(adoTransaction); TaxLot.Update(adoTransaction); WorkingOrder.Update(adoTransaction); }