Context.cs 587 B

1234567891011121314151617181920212223
  1. using Microsoft.EntityFrameworkCore;
  2. using Safeguard.Models;
  3. namespace Safeguard.EntityFramework
  4. {
  5. public class Context : DbContext
  6. {
  7. public Context(DbContextOptions<Context> options)
  8. : base(options)
  9. {
  10. }
  11. protected override void OnModelCreating(ModelBuilder modelBuilder)
  12. {
  13. base.OnModelCreating(modelBuilder);
  14. }
  15. public DbSet<HostMqttInfo> HostMqttInfos { get; set; }
  16. public DbSet<MCConfig> MCConfigs { get; set; }
  17. public DbSet<CimPassword> CimPasswords { get; set; }
  18. }
  19. }