Example #1
0
        /// <summary>
        /// Inserts a <see cref="Tree"/> into the object database, created from a <see cref="TreeDefinition"/>.
        /// </summary>
        /// <param name="treeDefinition">The <see cref="TreeDefinition"/>.</param>
        /// <returns>The created <see cref="Tree"/>.</returns>
        public virtual Tree CreateTree(TreeDefinition treeDefinition)
        {
            Ensure.ArgumentNotNull(treeDefinition, "treeDefinition");

            return(treeDefinition.Build(repo));
        }
Example #2
0
 /// <summary>
 ///   Inserts a <see cref = "Tree"/> into the object database, created from a <see cref = "TreeDefinition"/>.
 /// </summary>
 /// <param name = "treeDefinition">The <see cref = "TreeDefinition"/>.</param>
 /// <returns>The created <see cref = "Tree"/>.</returns>
 public Tree CreateTree(TreeDefinition treeDefinition)
 {
     return(treeDefinition.Build(repo));
 }
Example #3
0
        /// <summary>
        ///   Inserts a <see cref = "Tree"/> into the object database, created from a <see cref = "TreeDefinition"/>.
        /// </summary>
        /// <param name = "treeDefinition">The <see cref = "TreeDefinition"/>.</param>
        /// <returns>The created <see cref = "Tree"/>.</returns>
        public virtual Tree CreateTree(TreeDefinition treeDefinition)
        {
            Ensure.ArgumentNotNull(treeDefinition, "treeDefinition");

            return treeDefinition.Build(repo);
        }
Example #4
0
 /// <summary>
 ///   Inserts a <see cref = "Tree"/> into the object database, created from a <see cref = "TreeDefinition"/>.
 /// </summary>
 /// <param name = "treeDefinition">The <see cref = "TreeDefinition"/>.</param>
 /// <returns>The created <see cref = "Tree"/>.</returns>
 public Tree CreateTree(TreeDefinition treeDefinition)
 {
     return treeDefinition.Build(repo);
 }