/// <summary> /// Copies the specified source. /// </summary> /// <param name="source">The source.</param> /// <param name="destination">The destination.</param> /// <param name="categoryID">The category ID.</param> public void Copy(KbContext source, KbContext destination, int categoryID) { if (source == null) { throw new ArgumentNullException("source"); } if (destination == null) { throw new ArgumentNullException("destination"); } _source = source; _destination = destination; CloneCategory(categoryID); }
/// <summary> /// Initializes a new instance of the <see cref="CategoryTree"/> class. /// </summary> public CategoryTree(KbContext context) { _context = context; LoadData(); }
/// <summary> /// Initializes a new instance of the <see cref="ManagerBase<T>"/> class. /// </summary> /// <param name="context">The context.</param> /// <param name="factory">The factory.</param> protected ManagerBase(KbContext context, TFactory factory) { Context = context; Factory = factory; }