2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2026-06-13 14:38:43 +00:00
This commit is contained in:
2026-05-26 16:18:57 +03:00
parent e4a54ffbe8
commit a91fc7d262
29 changed files with 206 additions and 148 deletions
@@ -54,7 +54,7 @@ public class EntityStore : IStore
Dictionary<string, EntityTypeInfo> TypesByName = new Dictionary<string, EntityTypeInfo>();
internal Dictionary<Type, EntityTypeInfo> TypesByType = new Dictionary<Type, EntityTypeInfo>();
[Attribute]
//[Attribute]
public Func<DbContext> Getter { get; set; }
@@ -223,9 +223,9 @@ public class EntityStore : IStore
internal DbContextOptions Options { get; set; }
public AsyncReply<bool> Trigger(ResourceOperation trigger)
public AsyncReply<bool> Handle(ResourceOperation operation, IResourceContext? context = null)
{
if (trigger == ResourceOperation.Initialize)// SystemInitialized && DbContext != null)
if (operation == ResourceOperation.Initialize)// SystemInitialized && DbContext != null)
{
if (Getter == null)