IDocumentStore => IZeroStore
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
// {
|
||||
// IList<IApplication> apps;
|
||||
|
||||
// using (IAsyncDocumentSession session = Raven.OpenAsyncSession())
|
||||
// using (IAsyncDocumentSession session = Store.OpenAsyncSession())
|
||||
// {
|
||||
// apps = await session.Query<IApplication>().ToListAsync();
|
||||
// }
|
||||
@@ -69,7 +69,7 @@
|
||||
// HashSet<string> ids = new HashSet<string>();
|
||||
// IList<T> items;
|
||||
|
||||
// using (IAsyncDocumentSession session = Raven.OpenAsyncSession())
|
||||
// using (IAsyncDocumentSession session = Store.OpenAsyncSession())
|
||||
// {
|
||||
// session.Advanced.MaxNumberOfRequestsPerSession = 10000;
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
// await session.SaveChangesAsync();
|
||||
// }
|
||||
|
||||
// using (IAsyncDocumentSession session = Raven.OpenAsyncSession())
|
||||
// using (IAsyncDocumentSession session = Store.OpenAsyncSession())
|
||||
// {
|
||||
// session.Advanced.MaxNumberOfRequestsPerSession = 10000;
|
||||
|
||||
|
||||
@@ -1,27 +1,15 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Raven.Client.Documents;
|
||||
using Raven.Client.Documents.Session;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using zero.Commerce.Entities;
|
||||
using zero.Core;
|
||||
using zero.Core.Api;
|
||||
using zero.Core.Attributes;
|
||||
using zero.Core.Entities;
|
||||
using zero.Core.Extensions;
|
||||
using zero.Core.Utils;
|
||||
using zero.Core.Database;
|
||||
|
||||
namespace zero.Debug.Controllers
|
||||
{
|
||||
public partial class MigrationController : Controller
|
||||
{
|
||||
private IDocumentStore Raven { get; set; }
|
||||
private IZeroStore Store { get; set; }
|
||||
|
||||
public MigrationController(IDocumentStore raven)
|
||||
public MigrationController(IZeroStore store)
|
||||
{
|
||||
Raven = raven;
|
||||
Store = store;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user