Execute() public method

Executes the index creation against the specified document database using the specified conventions
public Execute ( IDatabaseCommands databaseCommands, DocumentConvention documentConvention ) : void
databaseCommands IDatabaseCommands
documentConvention Raven.Client.Document.DocumentConvention
return void
Example #1
0
		/// <summary>
		/// Executes the transformer creation
		/// </summary>
		public virtual void ExecuteTransformer(AbstractTransformerCreationTask transformerCreationTask)
		{
			transformerCreationTask.Execute(DatabaseCommands, Conventions);
		}
		/// <summary>
		/// Executes the transformer creation
		/// </summary>
		public override void ExecuteTransformer(AbstractTransformerCreationTask transformerCreationTask)
		{
			var list = ShardStrategy.Shards.Values.Select(x => x.DatabaseCommands).ToList();
			ShardStrategy.ShardAccessStrategy.Apply(list,
															new ShardRequestData()
															, (commands, i) =>
															{
																transformerCreationTask.Execute(commands, Conventions);
																return (object)null;
															});
		}