IDocumentStore => IZeroStore

This commit is contained in:
2020-11-15 17:07:27 +01:00
parent 3943f92f4c
commit c4e91efd5b
33 changed files with 155 additions and 164 deletions
@@ -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;
+4 -16
View File
@@ -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;
}
}
}