/// <summary> /// Public constructor with required data /// </summary> /// <param name="_bchildrequired"></param> public BParentCollection(BChild _bchildrequired) { if (_bchildrequired == null) { throw new ArgumentNullException(nameof(_bchildrequired)); } BChildRequired = _bchildrequired; Init(); }
/// <summary> /// Public constructor with required data /// </summary> /// <param name="_bchildrequired"></param> public BParentCollection(BChild _bchildrequired) { if (_bchildrequired == null) { throw new ArgumentNullException(nameof(_bchildrequired)); } BChildRequired = _bchildrequired; BChildCollection = new ObservableCollection <BChild>(); Init(); }
/// <summary> /// Public constructor with required data /// </summary> /// <param name="_bchildrequired"></param> public BParentOptional(BChild _bchildrequired) { if (_bchildrequired == null) { throw new ArgumentNullException(nameof(_bchildrequired)); } BChildRequired = _bchildrequired; BChildCollection = new HashSet <BChild>(); Init(); }
/// <summary> /// Static create function (for use in LINQ queries, etc.) /// </summary> /// <param name="_bchildrequired"></param> public static BParentCollection Create(BChild _bchildrequired) { return(new BParentCollection(_bchildrequired)); }
/// <summary> /// Static create function (for use in LINQ queries, etc.) /// </summary> /// <param name="_bchildrequired"></param> public static BParentRequired Create(BChild _bchildrequired) { return(new BParentRequired(_bchildrequired)); }
/// <summary> /// Static create function (for use in LINQ queries, etc.) /// </summary> /// <param name="_bchildrequired"></param> public static BParentOptional Create(BChild _bchildrequired) { return(new BParentOptional(_bchildrequired)); }