mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-09-13 12:43:17 +00:00
update
This commit is contained in:
@@ -35,6 +35,7 @@ using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using System.Reflection;
|
||||
using Esiur.Proxy;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Esiur.Resource;
|
||||
|
||||
namespace Esiur.Stores.EntityCore;
|
||||
|
||||
@@ -50,13 +51,15 @@ public class EsiurExtensionOptions : IDbContextOptionsExtension
|
||||
|
||||
|
||||
|
||||
private DbContextOptionsExtensionInfo _info;
|
||||
DbContextOptionsExtensionInfo _info;
|
||||
EntityStore _store;
|
||||
Warehouse _warehouse;
|
||||
|
||||
public DbContextOptionsExtensionInfo Info => _info;
|
||||
|
||||
public EntityStore Store => _store;
|
||||
|
||||
public Warehouse Warehouse => _warehouse;
|
||||
|
||||
public void ApplyServices(IServiceCollection services)
|
||||
{
|
||||
@@ -84,6 +87,7 @@ public class EsiurExtensionOptions : IDbContextOptionsExtension
|
||||
{
|
||||
_info = new ExtensionInfo(this);
|
||||
_store = store;
|
||||
_warehouse = store.Instance.Warehouse;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user