/// <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(); }
/// <summary> /// Static create function (for use in LINQ queries, etc.) /// </summary> /// <param name="foo">Foreign key for Entity5.Entity2 <--> Entity2.Entity5. </param> /// <param name="entity5"></param> public static Entity2 Create(int foo, global::Sandbox.Entity5 entity5) { return(new Entity2(foo, entity5)); }
/// <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)); }