using Blahblah.FlowerStory.Server.Data.Model; using Microsoft.EntityFrameworkCore; namespace Blahblah.FlowerStory.Server.Data; /// /// 数据库管理类 /// public class FlowerDatabase : DbContext { /// /// 构造数据库对象 /// /// 选项参数 public FlowerDatabase(DbContextOptions options) : base(options) { //Database.Migrate(); } /// /// 用户集 /// public DbSet Users { get; set; } /// /// 花草集 /// public DbSet Flowers { get; set; } /// /// 记录集 /// public DbSet Records { get; set; } /// /// 会话令牌集 /// public DbSet Tokens { get; set; } /// /// 照片集 /// public DbSet Photos { get; set; } }