Example #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>
 internal static void UpdateChildren(AdoTransaction adoTransaction)
 {
     // These table lock(s) are required for the 'Update' operation.
     adoTransaction.LockRequests.Add(new TableWriterRequest(ServerDataModel.Model));
     Account.UpdateChildren(adoTransaction);
     PositionTarget.Update(adoTransaction);
     SectorTarget.Update(adoTransaction);
 }
Example #2
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.PositionType));
     Position.Update(adoTransaction);
     PositionTarget.Update(adoTransaction);
     TaxLot.Update(adoTransaction);
     Violation.Update(adoTransaction);
 }
Example #3
0
        /// <summary>Inserts a PositionTarget 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            modelId          = parameters["modelId"];
            int            securityId       = parameters["securityId"];
            int            positionTypeCode = parameters["positionTypeCode"];
            object         percent          = parameters["percent"].Value;

            // Call the internal method to complete the operation.
            PositionTarget.Update(adoTransaction, sqlTransaction, ref rowVersion, modelId, securityId, positionTypeCode, percent);
            // Return values.
            parameters["rowVersion"] = rowVersion;
        }
Example #4
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>
 internal static void UpdateChildren(AdoTransaction adoTransaction)
 {
     // These table lock(s) are required for the 'Update' operation.
     adoTransaction.LockRequests.Add(new TableWriterRequest(ServerDataModel.Security));
     Account.UpdateChildren(adoTransaction);
     Allocation.Update(adoTransaction);
     BlockOrder.Update(adoTransaction);
     BlotterMap.Update(adoTransaction);
     Debt.UpdateChildren(adoTransaction);
     Currency.UpdateChildren(adoTransaction);
     Equity.UpdateChildren(adoTransaction);
     Position.Update(adoTransaction);
     PositionTarget.Update(adoTransaction);
     Price.Update(adoTransaction);
     ProposedOrder.Update(adoTransaction);
     TaxLot.Update(adoTransaction);
     Violation.Update(adoTransaction);
 }