示例#1
0
        /// <summary>
        /// Public constructor with required data
        /// </summary>
        /// <param name="entityimplementation"></param>
        public Entity1(global::EFDesignerCoreTest.EntityImplementation entityimplementation)
        {
            if (entityimplementation == null)
            {
                throw new ArgumentNullException(nameof(entityimplementation));
            }
            this.EntityImplementation    = entityimplementation;
            entityimplementation.Entity1 = this;

            Init();
        }
示例#2
0
 /// <summary>
 /// Static create function (for use in LINQ queries, etc.)
 /// </summary>
 /// <param name="entityimplementation"></param>
 public static Entity1 Create(global::EFDesignerCoreTest.EntityImplementation entityimplementation)
 {
     return(new Entity1(entityimplementation));
 }
        /// <summary>
        /// Default constructor. Protected due to required properties, but present because EF needs it.
        /// </summary>
        protected Entity1()
        {
            EntityImplementation = new global::EFDesignerCoreTest.EntityImplementation();

            Init();
        }