/// <summary>
        /// Deep Loads the <see cref="IEntity"/> object with criteria based of the child
        /// property collections only N Levels Deep based on the <see cref="DeepLoadType"/>.
        /// </summary>
        /// <remarks>
        /// Use this method with caution as it is possible to DeepLoad with Recursion and traverse an entire object graph.
        /// </remarks>
        /// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
        /// <param name="entity">The <see cref="Nettiers.AdventureWorks.Entities.TestProduct"/> object to load.</param>
        /// <param name="deep">Boolean. A flag that indicates whether to recursively save all Property Collection that are descendants of this instance. If True, saves the complete object graph below this object. If False, saves this object only. </param>
        /// <param name="deepLoadType">DeepLoadType Enumeration to Include/Exclude object property collections from Load.</param>
        /// <param name="childTypes">Nettiers.AdventureWorks.Entities.TestProduct Property Collection Type Array To Include or Exclude from Load</param>
        /// <param name="innerList">A collection of child types for easy access.</param>
        /// <exception cref="ArgumentNullException">entity or childTypes is null.</exception>
        /// <exception cref="ArgumentException">deepLoadType has invalid value.</exception>
        public override void DeepLoad(TransactionManager transactionManager, Nettiers.AdventureWorks.Entities.TestProduct entity, bool deep, DeepLoadType deepLoadType, System.Type[] childTypes, DeepSession innerList)
        {
            if (entity == null)
            {
                return;
            }

            //used to hold DeepLoad method delegates and fire after all the local children have been loaded.
            DeepHandles deepHandles = new DeepHandles();

            //Fire all DeepLoad Items
            deepHandles.InvokeAll();
            deepHandles = null;
        }
        /// <summary>
        /// Deep Save the entire object graph of the Nettiers.AdventureWorks.Entities.TestProduct object with criteria based of the child
        /// Type property array and DeepSaveType.
        /// </summary>
        /// <param name="transactionManager">The transaction manager.</param>
        /// <param name="entity">Nettiers.AdventureWorks.Entities.TestProduct instance</param>
        /// <param name="deepSaveType">DeepSaveType Enumeration to Include/Exclude object property collections from Save.</param>
        /// <param name="childTypes">Nettiers.AdventureWorks.Entities.TestProduct Property Collection Type Array To Include or Exclude from Save</param>
        /// <param name="innerList">A Hashtable of child types for easy access.</param>
        public override bool DeepSave(TransactionManager transactionManager, Nettiers.AdventureWorks.Entities.TestProduct entity, DeepSaveType deepSaveType, System.Type[] childTypes, DeepSession innerList)
        {
            if (entity == null)
            {
                return(false);
            }

            #region Composite Parent Properties
            //Save Source Composite Properties, however, don't call deep save on them.
            //So they only get saved a single level deep.
            #endregion Composite Parent Properties

            // Save Root Entity through Provider
            if (!entity.IsDeleted)
            {
                this.Save(transactionManager, entity);
            }

            //used to hold DeepSave method delegates and fire after all the local children have been saved.
            DeepHandles deepHandles = new DeepHandles();
            //Fire all DeepSave Items
            if (deepHandles.ContainsDuplicates())
            {
                innerList.CancelSession = true;
            }
            else
            {
                deepHandles.InvokeAll();
            }

            // Save Root Entity through Provider, if not already saved in delete mode
            if (entity.IsDeleted)
            {
                this.Save(transactionManager, entity);
            }


            deepHandles = null;

            return(true);
        }