/// <summary> /// Public constructor with required data /// </summary> /// <param name="entity1"></param> public Entity2(global::Testing_EFCoreV3.Entity1 entity1) { if (entity1 == null) { throw new ArgumentNullException(nameof(entity1)); } this.Entity1 = entity1; Init(); }
/// <summary> /// Static create function (for use in LINQ queries, etc.) /// </summary> /// <param name="entity1"></param> public static Entity2 Create(global::Testing_EFCoreV3.Entity1 entity1) { return(new Entity2(entity1)); }