xuruiqian
2025-06-04 5955ac5715a811407e183042875fd1d130572d58
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using System.Web;
 
namespace GTech.Solution.Api.WebSite.DatabaseContent
{
    public class TDatabaseContext : DbContext
    {
        public TDatabaseContext() : base("Default")
        {
 
        }
 
        #region MasterData
        public virtual DbSet<out_chemicals> out_chemicals { get; set; }
        public virtual DbSet<out_light_cloud> out_light_cloud { get; set; }
        public virtual DbSet<out_meteorological> out_meteorological { get; set; }
        public virtual DbSet<out_result> out_result { get; set; }
        public virtual DbSet<out_result_explosion> out_result_explosion { get; set; }
        public virtual DbSet<out_result_gas_cloud> out_result_gas_cloud { get; set; }
        public virtual DbSet<out_result_heat_radiation> out_result_heat_radiation { get; set; }
        public virtual DbSet<out_result_overburnt> out_result_overburnt { get; set; }
        public virtual DbSet<out_scenar> out_scenar { get; set; }
        public virtual DbSet<out_source> out_source { get; set; }
        public virtual DbSet<out_source_exposure> out_source_exposure { get; set; }
        public virtual DbSet<out_source_gas> out_source_gas { get; set; }
        public virtual DbSet<out_source_liquid> out_source_liquid { get; set; }
        public virtual DbSet<out_source_tank> out_source_tank { get; set; }
        public virtual DbSet<out_surface> out_surface { get; set; }
        #endregion
 
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
            modelBuilder.Types().Configure(f => f.ToTable("" + f.ClrType.Name));
        }
    }
}