CcsContext.cs 789 B

1234567891011121314151617181920212223242526272829303132
  1. using IMCS.CCS.Entitys;
  2. using Microsoft.EntityFrameworkCore;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Threading.Tasks;
  7. namespace IMCS.CCS.Repository
  8. {
  9. public class CcsContext : DbContext
  10. {
  11. public CcsContext(DbContextOptions<CcsContext> options)
  12. : base(options)
  13. {
  14. }
  15. public DbSet<User> User { get; set; }
  16. public DbSet<IMCS.CCS.Entitys.Device> Device { get; set; }
  17. public DbSet<EquipmentMonitor> EquipmentMonitor { get; set; }
  18. public DbSet<TaskCallback> TaskCallback { get; set; }
  19. public DbSet<ToolDto> Dictionary { get; set; }
  20. public DbSet<CcsAction> CcsAction { get; set; }
  21. public DbSet<CcsTagValue> CcsTagValue { get; set; }
  22. }
  23. }