This commit is contained in:
2026-05-08 04:30:24 +03:30
parent 58814f4670
commit 6b6790b61a
4 changed files with 59 additions and 2 deletions
+25
View File
@@ -0,0 +1,25 @@
using System.Collections.Generic;
using xDataService.Interfaces;
using xDataService.Models;
namespace xServices.Databases
{
public class XApiDatabaseDescriptor : XDatabaseDescriptor<XApiDbContext>, IXDatabaseDescriptor<XApiDbContext>
{
public XApiDatabaseDescriptor() : base(
name: "xApiDb",
repositories: new List<XRepositoryDescriptor>
{
//
// XTest Entity ...
// new XRepositoryDescriptor
// {
// //
// }
}
)
{
// Context = XApiDbContext;
}
}
}
+30
View File
@@ -0,0 +1,30 @@
using Microsoft.EntityFrameworkCore;
using xDataService.Configuration;
using xDataService.Db;
namespace xServices.Databases
{
public class XApiDbContext : XDbContext
{
//
#region DbSets ...
#endregion
//
#region Navigation Property Entities ...
#endregion
public XApiDbContext(
DbContextOptions options,
XDataServiceConfiguration config
) : base(options, config) { }
//
public override void OnXModelCreating(ModelBuilder modelBuilder)
{ }
//
public override void OnXConfiguring(DbContextOptionsBuilder optionsBuilder)
{ }
}
}