Exemplo n.º 1
0
        /// <summary>
        /// Public constructor with required data
        /// </summary>
        /// <param name="entityabstract"></param>
        public EntityRelated(global::EFDesignerCoreTest.EntityAbstract entityabstract)
        {
            if (entityabstract == null)
            {
                throw new ArgumentNullException(nameof(entityabstract));
            }
            this.EntityAbstract = entityabstract;
            entityabstract.EntityRelated.Add(this);

            Init();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Static create function (for use in LINQ queries, etc.)
 /// </summary>
 /// <param name="entityabstract"></param>
 public static EntityRelated Create(global::EFDesignerCoreTest.EntityAbstract entityabstract)
 {
     return(new EntityRelated(entityabstract));
 }