/// <summary> /// Public constructor with required data /// </summary> /// <param name="parent"></param> /// <param name="_master0"></param> public Child(global::Testing_CoreV2NetCore.Child parent, global::Testing_CoreV2NetCore.Master _master0) { if (parent == null) { throw new ArgumentNullException(nameof(parent)); } this.Parent = parent; if (_master0 == null) { throw new ArgumentNullException(nameof(_master0)); } _master0.Children.Add(this); this.Children = new System.Collections.Generic.HashSet <global::Testing_CoreV2NetCore.Child>(); Init(); }
/// <summary> /// Static create function (for use in LINQ queries, etc.) /// </summary> /// <param name="parent"></param> /// <param name="_master0"></param> public static Child Create(global::Testing_CoreV2NetCore.Child parent, global::Testing_CoreV2NetCore.Master _master0) { return(new Child(parent, _master0)); }