Beispiel #1
0
        /// <summary>Creates a new, empty Entity object of the type specified</summary>
        /// <param name="entityTypeToCreate">The entity type to create.</param>
        /// <returns>A new, empty Entity object.</returns>
        public static IEntity2 Create(DB_A4D6F8_AqarPress.Data.EntityType entityTypeToCreate)
        {
            var      factoryToUse = EntityFactoryFactory.GetFactory(entityTypeToCreate);
            IEntity2 toReturn     = null;

            if (factoryToUse != null)
            {
                toReturn = factoryToUse.Create();
            }
            return(toReturn);
        }
Beispiel #2
0
 /// <inheritdoc/>
 protected override IEntityFactoryCore GetFactoryImpl(Type typeOfEntity)
 {
     return(EntityFactoryFactory.GetFactory(typeOfEntity));
 }
Beispiel #3
0
 /// <inheritdoc/>
 protected override IEntityFactoryCore GetFactoryImpl(int entityTypeValue)
 {
     return(EntityFactoryFactory.GetFactory((DB_A4D6F8_AqarPress.Data.EntityType)entityTypeValue));
 }