Пример #1
0
        /// <summary>
        /// Public constructor with required data
        /// </summary>
        /// <param name="_entity21"></param>
        public Entity3(global::MultiContext.Context2.Entity2 _entity21)
        {
            if (_entity21 == null)
            {
                throw new ArgumentNullException(nameof(_entity21));
            }
            _entity21.Entity3.Add(this);


            Init();
        }
Пример #2
0
        /// <summary>
        /// Public constructor with required data
        /// </summary>
        /// <param name="fk">Foreign key for Entity2.Entity3 --&gt; Entity3. </param>
        /// <param name="_entity20"></param>
        public Entity3(int fk, global::MultiContext.Context2.Entity2 _entity20)
        {
            this.Fk = fk;

            if (_entity20 == null)
            {
                throw new ArgumentNullException(nameof(_entity20));
            }
            _entity20.Entity3.Add(this);

            Init();
        }
Пример #3
0
 /// <summary>
 /// Static create function (for use in LINQ queries, etc.)
 /// </summary>
 /// <param name="fk">Foreign key for Entity2.Entity3 --&gt; Entity3. </param>
 /// <param name="_entity20"></param>
 public static Entity3 Create(int fk, global::MultiContext.Context2.Entity2 _entity20)
 {
     return(new Entity3(fk, _entity20));
 }
Пример #4
0
 /// <summary>
 /// Static create function (for use in LINQ queries, etc.)
 /// </summary>
 /// <param name="_entity21"></param>
 public static Entity3 Create(global::MultiContext.Context2.Entity2 _entity21)
 {
     return(new Entity3(_entity21));
 }