Example #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(TournamentManager.DAL.EntityType entityTypeToCreate)
        {
            var      factoryToUse = EntityFactoryFactory.GetFactory(entityTypeToCreate);
            IEntity2 toReturn     = null;

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