Пример #1
0
        /// <summary>Inserts a Institution record using Metadata Parameters.</summary>
        /// <param name="parameters">Contains the metadata parameters.</param>
        public new 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            institutionId  = parameters["institutionId"];

            // Call the internal method to complete the operation.
            Institution.Archive(adoTransaction, sqlTransaction, rowVersion, institutionId);
        }
Пример #2
0
        /// <summary>Inserts a Institution record using Metadata Parameters.</summary>
        /// <param name="parameters">Contains the metadata parameters.</param>
        public new 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         externalId1                        = parameters["externalId1"].Value;
            object         externalId2                        = parameters["externalId2"].Value;
            object         externalId3                        = parameters["externalId3"].Value;
            object         externalId4                        = parameters["externalId4"].Value;
            object         externalId5                        = parameters["externalId5"].Value;
            object         externalId6                        = parameters["externalId6"].Value;
            object         externalId7                        = parameters["externalId7"].Value;
            object         groupPermission                    = parameters["groupPermission"].Value;
            object         hidden                             = parameters["hidden"].Value;
            string         name                               = parameters["name"];
            object         owner                              = parameters["owner"].Value;
            object         ownerPermission                    = parameters["ownerPermission"].Value;
            object         readOnly                           = parameters["readOnly"].Value;
            object         worldPermission                    = parameters["worldPermission"].Value;
            object         advertisementStylesheetId          = parameters["advertisementStylesheetId"].Value;
            object         destinationOrderDetailStylesheetId = parameters["destinationOrderDetailStylesheetId"].Value;
            object         destinationOrderStylesheetId       = parameters["destinationOrderStylesheetId"].Value;
            object         executionDetailStylesheetId        = parameters["executionDetailStylesheetId"].Value;
            object         executionStylesheetId              = parameters["executionStylesheetId"].Value;
            object         matchStylesheetId                  = parameters["matchStylesheetId"].Value;
            object         matchHistoryStylesheetId           = parameters["matchHistoryStylesheetId"].Value;
            int            partyTypeCode                      = parameters["partyTypeCode"];
            object         sourceOrderDetailStylesheetId      = parameters["sourceOrderDetailStylesheetId"].Value;
            object         sourceOrderStylesheetId            = parameters["sourceOrderStylesheetId"].Value;
            object         workingOrderStylesheetId           = parameters["workingOrderStylesheetId"].Value;
            object         buyMarketValueThreshold            = parameters["buyMarketValueThreshold"].Value;
            object         buyQuantityThreshold               = parameters["buyQuantityThreshold"].Value;
            object         sellMarketValueThreshold           = parameters["sellMarketValueThreshold"].Value;
            object         sellQuantityThreshold              = parameters["sellQuantityThreshold"].Value;
            string         shortName                          = parameters["shortName"];
            object         typeCode                           = parameters["typeCode"].Value;
            // 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 institutionId = Institution.Insert(adoTransaction, sqlTransaction, ref rowVersion, description, externalId0, externalId1, externalId2, externalId3, externalId4, externalId5, externalId6, externalId7, groupPermission, hidden, name, owner, ownerPermission, readOnly, worldPermission, advertisementStylesheetId, destinationOrderDetailStylesheetId, destinationOrderStylesheetId, executionDetailStylesheetId, executionStylesheetId, matchStylesheetId, matchHistoryStylesheetId, partyTypeCode, sourceOrderDetailStylesheetId, sourceOrderStylesheetId, workingOrderStylesheetId, buyMarketValueThreshold, buyQuantityThreshold, sellMarketValueThreshold, sellQuantityThreshold, shortName, typeCode);

            // Return values.
            parameters["rowVersion"] = rowVersion;
            parameters.Return        = institutionId;
        }