first commit
This commit is contained in:
commit
07e4e6b381
13 files changed
+388
No files matched your search
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace PaperlessAI.Context;
|
||||
|
||||
public class MyDbContext : DbContext
|
||||
{
|
||||
public MyDbContext()
|
||||
{
|
||||
}
|
||||
|
||||
public MyDbContext(DbContextOptions<MyDbContext> options)
|
||||
: base(options)
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder
|
||||
.UseCollation("utf8mb4_uca1400_ai_ci")
|
||||
.HasCharSet("utf8mb4");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user