本文整理汇总了C#中Raven.Client.Document.DocumentStore.SideBySideExecuteIndex方法的典型用法代码示例。如果您正苦于以下问题:C# DocumentStore.SideBySideExecuteIndex方法的具体用法?C# DocumentStore.SideBySideExecuteIndex怎么用?C# DocumentStore.SideBySideExecuteIndex使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Raven.Client.Document.DocumentStore
的用法示例。
在下文中一共展示了DocumentStore.SideBySideExecuteIndex方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SideBySide
public SideBySide()
{
#region side_by_side_3
using (var store = new DocumentStore
{
Url = "http://localhost:8080/",
DefaultDatabase = "Northwind"
})
{
store.Initialize();
// This method will create 'ReplacementOf/Orders/ByCompany' index, which will replace 'Orders/ByCompany' when
// - new index will become non-stale
// - new index will reach at least '01000000-0000-000E-0000-000000000293' etag
// - in 6 hours from the deployment date
store.SideBySideExecuteIndex(new Orders_ByCompany(), Etag.Parse("01000000-0000-000E-0000-000000000293"), DateTime.UtcNow.AddHours(6));
}
#endregion
using (var store = new DocumentStore())
{
#region side_by_side_4
// This method will create 'ReplacementOf/Orders/ByCompany' index, which will replace 'Orders/ByCompany' when
// - new index will become non-stale
// - new index will reach at least '01000000-0000-000E-0000-000000000293' etag
// - in 6 hours from the deployment date
new Orders_ByCompany().SideBySideExecute(store.DatabaseCommands, store.Conventions, Etag.Parse("01000000-0000-000E-0000-000000000293"), DateTime.UtcNow.AddHours(6));
#endregion
}
}