/// <summary>
        /// Public constructor with required data
        /// </summary>
        /// <param name="_entity2_1"></param>
        public Entity1(Sandbox.Entity2 _entity2_1)
        {
            if (_entity2_1 == null)
            {
                throw new ArgumentNullException(nameof(_entity2_1));
            }
            Entity2_1 = _entity2_1;

            Entity2 = new HashSet <Sandbox.Entity2>();
            Init();
        }
 /// <summary>
 /// Static create function (for use in LINQ queries, etc.)
 /// </summary>
 /// <param name="_entity2_1"></param>
 public static Entity1 Create(Sandbox.Entity2 _entity2_1)
 {
     return(new Entity1(_entity2_1));
 }
 partial void GetEntity2_1(ref Sandbox.Entity2 result);
 partial void SetEntity2_1(Sandbox.Entity2 oldValue, ref Sandbox.Entity2 newValue);