예제 #1
0
        public override MigrationResult Migrate(DatabaseStatus preSchemaUpdateStatus)
        {
            indexer.Clear();

            int count = 0;

            foreach (var item in repository.Find("VersionOf.ID", null))
            {
                indexer.Update(item);
                count++;
            }

            return(new MigrationResult(this)
            {
                UpdatedItems = count
            });
        }
예제 #2
0
 /// <summary>Clears the index.</summary>
 public virtual void Clear()
 {
     indexer.Clear();
 }