/// <summary> /// Public constructor with required data /// </summary> /// <param name="_uparentrequired0"></param> /// <param name="_uparentrequired1"></param> /// <param name="_uparentrequired2"></param> public UChild(Testing.UParentRequired _uparentrequired0, Testing.UParentRequired _uparentrequired1, Testing.UParentRequired _uparentrequired2) { if (_uparentrequired0 == null) { throw new ArgumentNullException(nameof(_uparentrequired0)); } _uparentrequired0.UChildRequired = this; if (_uparentrequired1 == null) { throw new ArgumentNullException(nameof(_uparentrequired1)); } _uparentrequired1.UChildCollection.Add(this); if (_uparentrequired2 == null) { throw new ArgumentNullException(nameof(_uparentrequired2)); } _uparentrequired2.UChildOptional = this; Init(); }
/// <summary> /// Static create function (for use in LINQ queries, etc.) /// </summary> /// <param name="_uparentrequired0"></param> /// <param name="_uparentrequired1"></param> /// <param name="_uparentrequired2"></param> public static UChild Create(Testing.UParentRequired _uparentrequired0, Testing.UParentRequired _uparentrequired1, Testing.UParentRequired _uparentrequired2) { return(new UChild(_uparentrequired0, _uparentrequired1, _uparentrequired2)); }