protected virtual void OnEntitiesInserted(EntitiesInsertedEventArgs e)
        {
            if (EntitiesInserted == null)
            {
                return;
            }

            EntitiesInserted(this, e);
        }
Exemplo n.º 2
0
        private static void OnEntitiesInserted(object sender, EntitiesInsertedEventArgs e)
        {
            AggegateResults(e.EntityType, e.InsertedEntities);

            AppendLineToResultFile(e.EntityType, _totalInsertedEntities[e.EntityType], e.SleepTime.Milliseconds,
                                   e.LogicalFragmentationPercentage);

            Console.WriteLine("{0}/{1} {2} persisted.", _totalInsertedEntities[e.EntityType],
                              _numberOfEntitiesToGenerate, e.EntityType);
        }