Add SQLite setup in CommonPersistenceFeature and remove from Agents
Moved `SetupForSqlite` entity model handler to `CommonPersistenceFeature` to centralize SQLite configuration. Removed it from `Agents.Persistence.EntityFrameworkCore` to avoid redundancy.
This commit is contained in:
parent
7129f86e1e
commit
d46d0b53bc
|
|
@ -35,6 +35,5 @@ public class EFCoreAgentPersistenceFeature(IModule module) : PersistenceFeatureB
|
|||
AddEntityStore<ServiceDefinition, EFCoreServiceStore>();
|
||||
AddEntityStore<AgentDefinition, EFCoreAgentStore>();
|
||||
Services.AddScoped<IEntityModelCreatingHandler, SetupForOracle>();
|
||||
Services.AddScoped<IEntityModelCreatingHandler, SetupForSqlite>();
|
||||
}
|
||||
}
|
||||
|
|
@ -13,5 +13,6 @@ public class CommonPersistenceFeature(IModule module) : FeatureBase(module)
|
|||
{
|
||||
Services.AddScoped<IEntitySavingHandler, ApplyTenantId>();
|
||||
Services.AddScoped<IEntityModelCreatingHandler, SetTenantIdFilter>();
|
||||
Services.AddScoped<IEntityModelCreatingHandler, SetupForSqlite>();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue