/// <summary>
      /// Public constructor with required data
      /// </summary>
      /// <param name="uchildrequired"></param>
      public UParentCollection(global::Testing.UChild uchildrequired)
      {
         if (uchildrequired == null) throw new ArgumentNullException(nameof(uchildrequired));
         this.UChildRequired = uchildrequired;


         Init();
      }
      /// <summary>
      /// Public constructor with required data
      /// </summary>
      /// <param name="uchildrequired"></param>
      public UParentCollection(global::Testing.UChild uchildrequired)
      {
         if (uchildrequired == null) throw new ArgumentNullException(nameof(uchildrequired));
         this.UChildRequired = uchildrequired;

         this.UChildCollection = new System.Collections.ObjectModel.ObservableCollection<global::Testing.UChild>();

         Init();
      }
        /// <summary>
        /// Public constructor with required data
        /// </summary>
        /// <param name="uchildrequired"></param>
        public UParentRequired(global::Testing.UChild uchildrequired)
        {
            if (uchildrequired == null)
            {
                throw new ArgumentNullException(nameof(uchildrequired));
            }
            this.UChildRequired = uchildrequired;

            this.UChildCollection = new System.Collections.Generic.HashSet <global::Testing.UChild>();
            Init();
        }
        /// <summary>
        /// Public constructor with required data
        /// </summary>
        /// <param name="uchildrequired"></param>
        public UParentOptional(global::Testing.UChild uchildrequired)
        {
            this.PropertyInChild = "hello";
            if (uchildrequired == null)
            {
                throw new ArgumentNullException(nameof(uchildrequired));
            }
            this.UChildRequired = uchildrequired;

            this.UChildCollection = new System.Collections.ObjectModel.ObservableCollection <global::Testing.UChild>();
            Init();
        }
 /// <summary>
 /// Static create function (for use in LINQ queries, etc.)
 /// </summary>
 /// <param name="uchildrequired"></param>
 public static UParentCollection Create(global::Testing.UChild uchildrequired)
 {
     return(new UParentCollection(uchildrequired));
 }
 /// <summary>
 /// When provided in a partial class, allows value of UChildOptional to be changed before returning.
 /// </summary>
 partial void GetUChildOptional(ref global::Testing.UChild result);
 /// <summary>
 /// When provided in a partial class, allows value of UChildOptional to be changed before setting.
 /// </summary>
 partial void SetUChildOptional(global::Testing.UChild oldValue, ref global::Testing.UChild newValue);
 /// <summary>
 /// When provided in a partial class, allows value of UChildRequired to be changed before returning.
 /// </summary>
 partial void GetUChildRequired(ref global::Testing.UChild result);
 /// <summary>
 /// When provided in a partial class, allows value of UChildRequired to be changed before setting.
 /// </summary>
 partial void SetUChildRequired(global::Testing.UChild oldValue, ref global::Testing.UChild newValue);
 /// <summary>
 /// Static create function (for use in LINQ queries, etc.)
 /// </summary>
 /// <param name="uchildrequired"></param>
 public static UParentOptional Create(global::Testing.UChild uchildrequired)
 {
     return(new UParentOptional(uchildrequired));
 }
Exemple #11
0
 /// <summary>
 /// Static create function (for use in LINQ queries, etc.)
 /// </summary>
 /// <param name="uchildrequired"></param>
 public static UParentRequired Create(global::Testing.UChild uchildrequired)
 {
     return(new UParentRequired(uchildrequired));
 }