/// <summary>Initalizes new ProductCategory child object. Not added to collection.</summary> public static ProductCategory NewProductCategoryChildren(ProductCategory parent) { var newItem = new ProductCategory(); newItem.NullCheckEnabled = false; newItem.ProductCategoryID = ArrayUtil.NextNegativeId<ProductCategoryEntity>(parent.ProductCategoryChildren, (item) => (item.ProductCategoryID)); newItem.SetParent(newItem.Table.FK_ParentProductCategoryID, parent); return newItem; }