Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="xmlDoc"></param>
        public static void UpdateObjects(XmlDocument xmlDoc)
        {
            DataOpContext dataOpContext = InitEventContexts();

            dataOpContext.OnBeforeUpdateObjects(xmlDoc);

            using (TransactionScope scope = TransactionScopeFactory.Create())
            {
                dataOpContext.OnUpdateObjects(xmlDoc);
                scope.Complete();
            }
        }