25 lines
454 B
C#
25 lines
454 B
C#
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");
|
|
}
|
|
|
|
}
|