GDNXFDDbContext.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Data.Entity;
  5. using GDNXFD.Data.Model;
  6. namespace GDNXFD.Data
  7. {
  8. public class GDNXFDDbContext : DbContext
  9. {
  10. /// <summary>
  11. /// Constructor
  12. /// </summary>
  13. public GDNXFDDbContext()
  14. : base("ORACLEDBCONTEXT")
  15. {
  16. }
  17. protected override void OnModelCreating(DbModelBuilder modelBuilder)
  18. {
  19. modelBuilder.HasDefaultSchema("NXFDPROD"); //SA
  20. }
  21. public DbSet<AlertRule> AlertRule { get; set; }
  22. public DbSet<EquipmentModel> EquipmentModel { get; set; }
  23. public DbSet<TestingPointAI> TestingPointAI { get; set; }
  24. public DbSet<TestingPointDI> TestingPointDI { get; set; }
  25. public DbSet<WarningLevel> WarningLevel { get; set; }
  26. public DbSet<WindTurbine> WindTurbine { get; set; }
  27. public DbSet<WindTurbineTestingPointAI> WindTurbineTestingPointAI { get; set; }
  28. public DbSet<WindTurbineTestingPointDI> WindTurbineTestingPointDI { get; set; }
  29. public DbSet<AlertHistory> AlertHistory { get; set; }
  30. public DbSet<DictItem> DataDictionary { get; set; }
  31. public DbSet<WindPowerStation> WindPowerStation { get; set; }
  32. public DbSet<Line> Line { get; set; }
  33. public DbSet<Project> Project { get; set; }
  34. public DbSet<LevelTypeTestingPoint> LevelTypeTestingPoint { get; set; }
  35. public DbSet<ElectricalTestingPointAI> ElectricalTestingPointAI { get; set; }
  36. public DbSet<ElectricalTestingPointDI> ElectricalTestingPointDI { get; set; }
  37. public DbSet<WindPowerStationTestingPoint> WindPowerStationTestingPoint { get; set; }
  38. public DbSet<AlertSnap> AlertSnap { get; set; }
  39. public DbSet<IFixBJTestingPointDI> IFixBJTestingPointDI { get; set; }
  40. public DbSet<Warning> Warning { get; set; }
  41. public DbSet<ModelPowerDetails> ModelPowerDetails { get; set; }
  42. public DbSet<MaintainPlan> MaintainPlan { get; set; }
  43. public DbSet<ShutdownEvent> ShutdownEvent { get; set; }
  44. public DbSet<FaultSnap> FaultSnap { get; set; }
  45. public DbSet<FaultHistory> FaultHistory { get; set; }
  46. public DbSet<FaultInfo> FaultInfo { get; set; }
  47. public DbSet<InputOrOutputSpeedTotal> InputOrOutputSpeedTotal { get; set; }
  48. public DbSet<WindturbineCFTSpeed> WindturbineCFTSpeed { get; set; }
  49. public DbSet<AlertInfo> AlertInfo { get; set; }
  50. public DbSet<AdviceHistoryModel> AdviceHistoryModel { get; set; }
  51. public DbSet<AdviceModel> AdviceModel { get; set; }
  52. public DbSet<DeviceFault> DeviceFault { get; set; }
  53. }
  54. }