예제 #1
0
        /// <summary>
        /// Public constructor with required data
        /// </summary>
        /// <param name="entity5"></param>
        public Entity2(global::Sandbox.Entity5 entity5)
        {
            if (entity5 == null)
            {
                throw new ArgumentNullException(nameof(entity5));
            }
            this.Entity5 = entity5;

            this.Entity4 = new System.Collections.Generic.HashSet <global::Sandbox.Entity4>();

            Init();
        }
예제 #2
0
 /// <summary>
 /// Static create function (for use in LINQ queries, etc.)
 /// </summary>
 /// <param name="foo">Foreign key for Entity5.Entity2 &lt;--&gt; Entity2.Entity5. </param>
 /// <param name="entity5"></param>
 public static Entity2 Create(int foo, global::Sandbox.Entity5 entity5)
 {
     return(new Entity2(foo, entity5));
 }
예제 #3
0
 /// <summary>
 /// Static create function (for use in LINQ queries, etc.)
 /// </summary>
 /// <param name="entity5"></param>
 public static Entity2 Create(global::Sandbox.Entity5 entity5)
 {
     return(new Entity2(entity5));
 }