Esempio n. 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(EntityType entityTypeToCreate)
        {
            var      factoryToUse = EntityFactoryFactory.GetFactory(entityTypeToCreate);
            IEntity2 toReturn     = null;

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