成功写入Uesrs数据库表
This commit is contained in:
10
WorkStation.Server/Context/MyDbContext.cs
Normal file
10
WorkStation.Server/Context/MyDbContext.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using WorkStation.Server.Context.Entity;
|
||||
|
||||
namespace WorkStation.Server.Context
|
||||
{
|
||||
public class MyDbContext(DbContextOptions<MyDbContext> options) : DbContext(options)
|
||||
{
|
||||
public DbSet<User> Users { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user