[성현모] HubX DB구조, 쿼리 개선
This commit is contained in:
@ -25,11 +25,13 @@ public partial class HubXContext : DbContext
|
||||
{
|
||||
modelBuilder.Entity<TStorage>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.CHuid).HasName("PK__tStorage__346C9EFC86D3DC51");
|
||||
entity.HasKey(e => e.CIdentity).HasName("PK__tStorage__3EBC650D3753A7B8");
|
||||
|
||||
entity.ToTable("tStorage");
|
||||
|
||||
entity.Property(e => e.CHuid).HasColumnName("cHuid");
|
||||
entity.Property(e => e.CIdentity)
|
||||
.HasMaxLength(200)
|
||||
.HasColumnName("cIdentity");
|
||||
entity.Property(e => e.CData1)
|
||||
.HasMaxLength(4000)
|
||||
.HasColumnName("cData1");
|
||||
@ -46,9 +48,6 @@ public partial class HubXContext : DbContext
|
||||
.HasMaxLength(4000)
|
||||
.HasColumnName("cData5");
|
||||
entity.Property(e => e.CDateTime).HasColumnName("cDateTime");
|
||||
entity.Property(e => e.CIdentity)
|
||||
.HasMaxLength(200)
|
||||
.HasColumnName("cIdentity");
|
||||
});
|
||||
|
||||
OnModelCreatingPartial(modelBuilder);
|
||||
|
||||
@ -5,8 +5,6 @@ namespace DB.HubXDB;
|
||||
|
||||
public partial class TStorage
|
||||
{
|
||||
public long CHuid { get; set; }
|
||||
|
||||
public string CIdentity { get; set; } = null!;
|
||||
|
||||
public DateTime CDateTime { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user