-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModelContext.cs
More file actions
28 lines (22 loc) · 831 Bytes
/
ModelContext.cs
File metadata and controls
28 lines (22 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//using System;
//using System.Collections.Generic;
//using Microsoft.EntityFrameworkCore;
//using Pomelo.EntityFrameworkCore.MySql.Scaffolding.Internal;
//namespace donuts;
//public partial class ModelContext : DbContext
//{
// public ModelContext()
// {
// }
// public ModelContext(DbContextOptions<ModelContext> options)
// : base(options)
// {
// }
// protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
// => optionsBuilder.UseMySql("name=ConnectionStrings:DefaultConnection", Microsoft.EntityFrameworkCore.ServerVersion.Parse("8.0.39-mysql"));
// protected override void OnModelCreating(ModelBuilder modelBuilder)
// {
// OnModelCreatingPartial(modelBuilder);
// }
// partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
//}