/// <summary> /// Public constructor with required data /// </summary> /// <param name="_entity10"></param> public Entity2(Sandbox.Entity1 _entity10) { if (_entity10 == null) { throw new ArgumentNullException(nameof(_entity10)); } _entity10.Entity2.Add(this); Entity1 = new HashSet <Sandbox.Entity1>(); Init(); }
/// <summary> /// Static create function (for use in LINQ queries, etc.) /// </summary> /// <param name="_entity10"></param> public static Entity2 Create(Sandbox.Entity1 _entity10) { return(new Entity2(_entity10)); }