Example #1
0
        /// <summary>
        /// Public constructor with required data
        /// </summary>
        /// <param name="_uchildrequired"></param>
        public UParentCollection(UChild _uchildrequired)
        {
            if (_uchildrequired == null)
            {
                throw new ArgumentNullException(nameof(_uchildrequired));
            }
            UChildRequired = _uchildrequired;

            Init();
        }
Example #2
0
        /// <summary>
        /// Public constructor with required data
        /// </summary>
        /// <param name="_uchildrequired"></param>
        public UParentOptional(UChild _uchildrequired)
        {
            if (_uchildrequired == null)
            {
                throw new ArgumentNullException(nameof(_uchildrequired));
            }
            UChildRequired = _uchildrequired;

            UChildCollection = new HashSet <UChild>();
            Init();
        }
Example #3
0
 /// <summary>
 /// Static create function (for use in LINQ queries, etc.)
 /// </summary>
 /// <param name="_uchildrequired"></param>
 public static UParentOptional Create(UChild _uchildrequired)
 {
     return(new UParentOptional(_uchildrequired));
 }
Example #4
0
 /// <summary>
 /// Static create function (for use in LINQ queries, etc.)
 /// </summary>
 /// <param name="_uchildrequired"></param>
 public static UParentRequired Create(UChild _uchildrequired)
 {
     return(new UParentRequired(_uchildrequired));
 }
Example #5
0
 /// <summary>
 /// Static create function (for use in LINQ queries, etc.)
 /// </summary>
 /// <param name="_uchildrequired"></param>
 public static UParentCollection Create(UChild _uchildrequired)
 {
     return(new UParentCollection(_uchildrequired));
 }