ACSDbContext.cs
2.43 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
using Infrastructure;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using System.Data.SqlClient;
namespace WebRepository
{
public partial class ACSDbContext : DbContext
{
public ACSDbContext(DbContextOptions<ACSDbContext> options) : base(options)
{
}
#region ProjectDB
public virtual DbSet<Map> Maps { get; set; }
public virtual DbSet<MapPageContent> Map_content_tabs { get; set; }
public virtual DbSet<MapPoint> MapPoints { get; set; }
public virtual DbSet<MapStation> MapStations { get; set; }
public virtual DbSet<MapRegion> MapRegions { get; set; }
public virtual DbSet<TBaseAgv> TBaseAgvs { get; set; }
public virtual DbSet<TBaseAgvCharge> TBaseAgvCharges { get; set; }
public virtual DbSet<TBaseAgvmileage> TBaseAgvmileages { get; set; }
public virtual DbSet<TBaseAgvState> TBaseAgvStates { get; set; }
public virtual DbSet<TBasePathPoint> TBasePathPoints { get; set; }
public virtual DbSet<TBasePoint> TBasePoints { get; set; }
public virtual DbSet<TBaseStation> TBaseStations { get; set; }
public virtual DbSet<TConfigAgvErrTable> TConfigAgvErrTables { get; set; }
public virtual DbSet<TConfigErrMsg> TConfigErrMsgs { get; set; }
public virtual DbSet<TConfigKeyValue> TConfigKeyValues { get; set; }
public virtual DbSet<TConfigPoint> TConfigPoints { get; set; }
public virtual DbSet<TConfigTaskSplit> TConfigTaskSplits { get; set; }
public virtual DbSet<TConfigTim> TConfigTims { get; set; }
public virtual DbSet<TSonTask> TSonTasks { get; set; }
public virtual DbSet<TSonTaskRecord> TSonTaskRecords { get; set; }
public virtual DbSet<TTask> TTasks { get; set; }
public virtual DbSet<TTaskRecord> TTaskRecords { get; set; }
public virtual DbSet<TBaseNumber> TBaseNumbers { get; set; }
public virtual DbSet<TBaseHoister> TBaseHoisters { get; set; }
#endregion
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
// [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
#region ProjectDB
modelBuilder.Entity<TBaseAgv>().Property(c => c.CurrentCharge).HasColumnType("numeric(10, 2)");
modelBuilder.Entity<TBaseAgv>().Property(c => c.StartCharges).HasColumnType("numeric(10, 2)");
#endregion
}
}
}