Пример #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(Data.DailyLog.EntityType entityTypeToCreate)
        {
            var      factoryToUse = EntityFactoryFactory.GetFactory(entityTypeToCreate);
            IEntity2 toReturn     = null;

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