Ejemplo n.º 1
0
        /// <summary>
        /// Execute method to write transaction to the database.
        /// </summary>
        public void Execute()
        {
            if (Changes != null && Changes.Count > 0)
            {
                Model.EntityChangeService entityChangeService = new Model.EntityChangeService();

                foreach (var entityChange in Changes)
                {
                    entityChangeService.Add(entityChange, PersonId);
                    entityChangeService.Save(entityChange, PersonId);
                }
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Execute method to write transaction to the database.
        /// </summary>
        public void Execute()
        {
            if ( Changes != null && Changes.Count > 0 )
            {
                Model.EntityChangeService entityChangeService = new Model.EntityChangeService();

                foreach ( var entityChange in Changes )
                {
                    entityChangeService.Add( entityChange, PersonId );
                    entityChangeService.Save( entityChange, PersonId );
                }
            }
        }