last ...
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using xAiApi.Constants;
|
||||
using xAiModels.Providers;
|
||||
using xDataService.Configuration;
|
||||
using xDataService.Db;
|
||||
using xDataService.Providers;
|
||||
using xFileService.Providers;
|
||||
using xStringService.Providers;
|
||||
using xTagService.Providers;
|
||||
|
||||
namespace xAiApi.Database
|
||||
{
|
||||
/// <summary>
|
||||
/// Db Context of AiApi ...
|
||||
/// </summary>
|
||||
public class XAiApiDbContext : XDbContext
|
||||
{
|
||||
//
|
||||
#region DbSets ...
|
||||
#endregion
|
||||
|
||||
//
|
||||
#region Navigation Property Entities ...
|
||||
#endregion
|
||||
|
||||
//
|
||||
#region Constructor ...
|
||||
public XAiApiDbContext(
|
||||
DbContextOptions options,
|
||||
XDataServiceConfiguration config,
|
||||
XEntityRegisterarHandlerService dynamicEntityHandlers
|
||||
) : base(
|
||||
config: config,
|
||||
options: options,
|
||||
database: XAiApiConstants.XAiApiDbIdentifier,
|
||||
dynamicEntityHandlers: dynamicEntityHandlers,
|
||||
dynamicEntityRegisterarsNames: [
|
||||
nameof(XTagEntityRegisterar),
|
||||
nameof(XFileEntityRegisterar),
|
||||
nameof(XStringEntityRegisterar),
|
||||
nameof(XAiMessageEntityRegisterar),
|
||||
nameof(XAiProjectEntityRegisterar),
|
||||
nameof(XAiConversationEntityRegisterar),
|
||||
]
|
||||
)
|
||||
{ }
|
||||
#endregion
|
||||
|
||||
//
|
||||
#region Overrides ...
|
||||
//
|
||||
public override void OnXModelCreating(ModelBuilder modelBuilder)
|
||||
{ }
|
||||
|
||||
//
|
||||
public override void OnXConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{ }
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user