36 lines
1000 B
C#
36 lines
1000 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using xAiApi.AI.Models.Entities;
|
|
using xAiApi.Data.Models.Entities;
|
|
using xDataService.Configuration;
|
|
using xDataService.Db;
|
|
|
|
namespace xAiApi.Data
|
|
{
|
|
public partial class XAiApiDbContext : XDbContext
|
|
{
|
|
//
|
|
#region DbSets ...
|
|
public DbSet<XTest> Tests { get; set; }
|
|
|
|
//
|
|
// Ai Entities ...
|
|
|
|
public DbSet<XAiMessage> AiMessages { get; set; }
|
|
public DbSet<XAiProject> AiProjects { get; set; }
|
|
public DbSet<XAiConversation> AiConversations { get; set; }
|
|
#endregion
|
|
|
|
//
|
|
#region Navigation Property Entities ...
|
|
#endregion
|
|
|
|
public XAiApiDbContext(
|
|
DbContextOptions options,
|
|
XDataServiceConfiguration config
|
|
) : base(options, config) { }
|
|
|
|
public override void OnXConfiguring(DbContextOptionsBuilder optionsBuilder) { }
|
|
|
|
public override void OnXModelCreating(ModelBuilder modelBuilder) { }
|
|
}
|
|
} |