This commit is contained in:
2026-05-27 16:10:11 +03:30
parent 46de58631c
commit 0e57cba3be
12 changed files with 194 additions and 9 deletions
+2 -2
View File
@@ -34,8 +34,8 @@ namespace xServices.Databases
IXTestRepository,
XTestEFRepository,
XApiDbContext,
IXTestDbSeeder,
XTestDbSeeder
IXTestSeeder,
XTestSeeder
>
{}
}
+13 -2
View File
@@ -1,7 +1,10 @@
using Microsoft.EntityFrameworkCore;
using xDataService.Configuration;
using xDataService.Db;
using xDataService.Providers;
using xServices.Models.Entities;
using xStringService.Providers;
// using xStringService.Models.Entities;
namespace xServices.Databases
{
@@ -18,8 +21,16 @@ namespace xServices.Databases
public XApiDbContext(
DbContextOptions options,
XDataServiceConfiguration config
) : base(options, config) { }
XDataServiceConfiguration config,
XEntityRegisterarHandlerService dynamicEntityHandlers
) : base(
"xApiDb",
options,
config,
dynamicEntityHandlers,
new string[] { nameof(XStringEntityRegisterar) }
)
{ }
//
public override void OnXModelCreating(ModelBuilder modelBuilder)