Browse Source

数据库修改

master
DESKTOP-G961P6V\Zhh 2 years ago
parent
commit
3c34ebed73
  1. 5
      src/Shentun.WebPeis.Domain/Models/AppointPatientRegister.cs
  2. 25
      src/Shentun.WebPeis.Domain/Models/DiseaseRisk.cs
  3. 35
      src/Shentun.WebPeis.Domain/Models/DiseaseRiskLevel.cs
  4. 13
      src/Shentun.WebPeis.Domain/Models/DiseaseRiskLevelAsbitem.cs
  5. 23
      src/Shentun.WebPeis.Domain/Models/DiseaseRiskNormalLevel.cs
  6. 2
      src/Shentun.WebPeis.Domain/Models/Person.cs
  7. 8
      src/Shentun.WebPeis.Domain/Models/Question.cs
  8. 8
      src/Shentun.WebPeis.Domain/Models/QuestionAnswer.cs
  9. 23
      src/Shentun.WebPeis.Domain/Models/QuestionAnswerChild.cs
  10. 6
      src/Shentun.WebPeis.Domain/Models/QuestionRegisterAnswer.cs
  11. 23
      src/Shentun.WebPeis.Domain/Models/QuestionRegisterAnswerChild.cs
  12. 45
      src/Shentun.WebPeis.EntityFrameworkCore/Configures/DiseaseRiskConfigure.cs
  13. 30
      src/Shentun.WebPeis.EntityFrameworkCore/Configures/DiseaseRiskLevelAsbitemConfigure.cs
  14. 58
      src/Shentun.WebPeis.EntityFrameworkCore/Configures/DiseaseRiskLevelConfigure.cs
  15. 45
      src/Shentun.WebPeis.EntityFrameworkCore/Configures/DiseaseRiskNormalLevelConfigure.cs
  16. 2
      src/Shentun.WebPeis.EntityFrameworkCore/Configures/DiseaseScreeningTypeConfigure.cs
  17. 45
      src/Shentun.WebPeis.EntityFrameworkCore/Configures/QuestionAnswerChildConfigure.cs
  18. 43
      src/Shentun.WebPeis.EntityFrameworkCore/Configures/QuestionRegisterAnswerChildConfigure.cs
  19. 4
      src/Shentun.WebPeis.EntityFrameworkCore/Configures/QuestionRegisterAnswerConfigure.cs
  20. 4
      src/Shentun.WebPeis.EntityFrameworkCore/Configures/QuestionRegisterConfigure.cs
  21. 6
      src/Shentun.WebPeis.EntityFrameworkCore/Configures/QuestionRegisterItemConfigure.cs
  22. 17
      src/Shentun.WebPeis.EntityFrameworkCore/EntityFrameworkCore/WebPeisDbContext.cs

5
src/Shentun.WebPeis.Domain/Models/AppointPatientRegister.cs

@ -35,5 +35,10 @@ public partial class AppointPatientRegister
public string? ConcurrencyStamp { get; set; }
public char PregnantFlag { get; set; }
public decimal? Height { get; set; }
public decimal? Weight { get; set; }
public virtual ICollection<Charge> Charges { get; set; } = new List<Charge>();
}

25
src/Shentun.WebPeis.Domain/Models/DiseaseRisk.cs

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
namespace Shentun.WebPeis.Models;
public partial class DiseaseRisk
{
public Guid DiseaseRiskId { get; set; }
public string DiseaseRiskName { get; set; } = null!;
public string SimpleCode { get; set; } = null!;
public int DisplayOrder { get; set; }
public DateTime CreationTime { get; set; }
public Guid CreatorId { get; set; }
public DateTime LastModificationTime { get; set; }
public Guid LastModifierId { get; set; }
public virtual ICollection<DiseaseRiskLevel> DiseaseRiskLevels { get; set; } = new List<DiseaseRiskLevel>();
}

35
src/Shentun.WebPeis.Domain/Models/DiseaseRiskLevel.cs

@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
namespace Shentun.WebPeis.Models;
public partial class DiseaseRiskLevel
{
public Guid DiseaseRiskLevelId { get; set; }
public string DiseaseRiskLevelName { get; set; } = null!;
public Guid DiseaseRiskId { get; set; }
public string SimpleCode { get; set; } = null!;
public int DisplayOrder { get; set; }
public DateTime CreationTime { get; set; }
public Guid CreatorId { get; set; }
public DateTime LastModificationTime { get; set; }
public Guid LastModifierId { get; set; }
public short? DiseaseRiskNormalLevelId { get; set; }
public string? Explain { get; set; }
public string? Suggestion { get; set; }
public virtual DiseaseRisk DiseaseRisk { get; set; } = null!;
public virtual ICollection<DiseaseRiskLevelAsbitem> DiseaseRiskLevelAsbitems { get; set; } = new List<DiseaseRiskLevelAsbitem>();
}

13
src/Shentun.WebPeis.Domain/Models/DiseaseRiskLevelAsbitem.cs

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
namespace Shentun.WebPeis.Models;
public partial class DiseaseRiskLevelAsbitem
{
public Guid DiseaseRiskLevelId { get; set; }
public Guid AsbitemId { get; set; }
public virtual DiseaseRiskLevel DiseaseRiskLevel { get; set; } = null!;
}

23
src/Shentun.WebPeis.Domain/Models/DiseaseRiskNormalLevel.cs

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
namespace Shentun.WebPeis.Models;
public partial class DiseaseRiskNormalLevel
{
public short DiseaseRiskNormalLevelId { get; set; }
public string DiseaseRiskNormalLevelName { get; set; } = null!;
public string SimpleCode { get; set; } = null!;
public int DisplayOrder { get; set; }
public DateTime CreationTime { get; set; }
public Guid CreatorId { get; set; }
public DateTime LastModificationTime { get; set; }
public Guid LastModifierId { get; set; }
}

2
src/Shentun.WebPeis.Domain/Models/Person.cs

@ -83,7 +83,9 @@ public partial class Person: AuditedEntity,IHasConcurrencyStamp
public char? IsAllowBind { get; set; }
public decimal? Height { get; set; }
public decimal? Weight { get; set; }
public virtual ICollection<QuestionRegister> QuestionRegisters { get; set; } = new List<QuestionRegister>();
public override object?[] GetKeys()

8
src/Shentun.WebPeis.Domain/Models/Question.cs

@ -6,12 +6,10 @@ namespace Shentun.WebPeis.Models;
public partial class Question
{
public Guid QuestionId { get; set; }
public Guid? ParentId { get; set; }
public string PathCode { get; set; }
public string QuestionName { get; set; } = null!;
public Guid QuestionTypeId { get; set; }
public char QuestionTypeId { get; set; }
public string SimpleCode { get; set; } = null!;
@ -29,5 +27,9 @@ public partial class Question
public char? IsActive { get; set; }
public Guid? ParentId { get; set; }
public string? PathCode { get; set; }
public virtual ICollection<QuestionRegisterItem> QuestionRegisterItems { get; set; } = new List<QuestionRegisterItem>();
}

8
src/Shentun.WebPeis.Domain/Models/QuestionAnswer.cs

@ -23,5 +23,13 @@ public partial class QuestionAnswer
public Guid LastModifierId { get; set; }
public char? IsHaveChild { get; set; }
public char? ChildAnswerType { get; set; }
public char? AnswerResultType { get; set; }
public Guid? DiseaseRiskLevelId { get; set; }
public virtual ICollection<QuestionRegisterAnswer> QuestionRegisterAnswers { get; set; } = new List<QuestionRegisterAnswer>();
}

23
src/Shentun.WebPeis.Domain/Models/QuestionAnswerChild.cs

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
namespace Shentun.WebPeis.Models;
public partial class QuestionAnswerChild
{
public Guid QuestionAnswerChildId { get; set; }
public string QuestionAnswerChildName { get; set; } = null!;
public string SimpleCode { get; set; } = null!;
public int DisplayOrder { get; set; }
public DateTime CreationTime { get; set; }
public Guid CreatorId { get; set; }
public DateTime LastModificationTime { get; set; }
public Guid LastModifierId { get; set; }
}

6
src/Shentun.WebPeis.Domain/Models/QuestionRegisterAnswer.cs

@ -5,6 +5,8 @@ namespace Shentun.WebPeis.Models;
public partial class QuestionRegisterAnswer
{
public Guid QuestionRegisterAnswerId { get; set; }
public Guid QuestionRegisterItemId { get; set; }
public Guid QuestionAnswerId { get; set; }
@ -17,9 +19,9 @@ public partial class QuestionRegisterAnswer
public Guid LastModifierId { get; set; }
public Guid QuestionRegisterAnswerId { get; set; }
public virtual QuestionAnswer QuestionAnswer { get; set; } = null!;
public virtual ICollection<QuestionRegisterAnswerChild> QuestionRegisterAnswerChildren { get; set; } = new List<QuestionRegisterAnswerChild>();
public virtual QuestionRegisterItem QuestionRegisterItem { get; set; } = null!;
}

23
src/Shentun.WebPeis.Domain/Models/QuestionRegisterAnswerChild.cs

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
namespace Shentun.WebPeis.Models;
public partial class QuestionRegisterAnswerChild
{
public Guid QuestionRegisterAnswerChildId { get; set; }
public Guid QuestionRegisterAnswerId { get; set; }
public string? Content { get; set; }
public DateTime CreationTime { get; set; }
public Guid CreatorId { get; set; }
public DateTime LastModificationTime { get; set; }
public Guid LastModifierId { get; set; }
public virtual QuestionRegisterAnswer QuestionRegisterAnswer { get; set; } = null!;
}

45
src/Shentun.WebPeis.EntityFrameworkCore/Configures/DiseaseRiskConfigure.cs

@ -0,0 +1,45 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Shentun.WebPeis.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
namespace Shentun.WebPeis.Configures
{
public class DiseaseRiskConfigure : IEntityTypeConfiguration<DiseaseRisk>
{
public void Configure(EntityTypeBuilder<DiseaseRisk> entity)
{
entity.HasKey(e => e.DiseaseRiskId).HasName("pk_disease_risk");
entity.ToTable("disease_risk");
entity.HasIndex(e => e.DiseaseRiskName, "ix_disease_risk").IsUnique();
entity.Property(e => e.DiseaseRiskId)
.ValueGeneratedNever()
.HasColumnName("disease_risk_id");
entity.Property(e => e.CreationTime)
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
entity.Property(e => e.CreatorId).HasColumnName("creator_id");
entity.Property(e => e.DiseaseRiskName)
.HasMaxLength(20)
.HasColumnName("disease_risk_name");
entity.Property(e => e.DisplayOrder)
.HasDefaultValue(999999)
.HasColumnName("display_order");
entity.Property(e => e.LastModificationTime)
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
entity.Property(e => e.LastModifierId).HasColumnName("last_modifier_id");
entity.Property(e => e.SimpleCode)
.HasMaxLength(20)
.HasColumnName("simple_code");
}
}
}

30
src/Shentun.WebPeis.EntityFrameworkCore/Configures/DiseaseRiskLevelAsbitemConfigure.cs

@ -0,0 +1,30 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Shentun.WebPeis.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
namespace Shentun.WebPeis.Configures
{
public class DiseaseRiskLevelAsbitemConfigure : IEntityTypeConfiguration<DiseaseRiskLevelAsbitem>
{
public void Configure(EntityTypeBuilder<DiseaseRiskLevelAsbitem> entity)
{
entity.HasKey(e => new { e.DiseaseRiskLevelId, e.AsbitemId }).HasName("disease_risk_level_asbitem_pkey");
entity.ToTable("disease_risk_level_asbitem");
entity.Property(e => e.DiseaseRiskLevelId).HasColumnName("disease_risk_level_id");
entity.Property(e => e.AsbitemId).HasColumnName("asbitem_id");
entity.HasOne(d => d.DiseaseRiskLevel).WithMany(p => p.DiseaseRiskLevelAsbitems)
.HasForeignKey(d => d.DiseaseRiskLevelId)
.OnDelete(DeleteBehavior.ClientSetNull)
.HasConstraintName("disease_risk_level_asbitem");
}
}
}

58
src/Shentun.WebPeis.EntityFrameworkCore/Configures/DiseaseRiskLevelConfigure.cs

@ -0,0 +1,58 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Shentun.WebPeis.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
namespace Shentun.WebPeis.Configures
{
public class DiseaseRiskLevelConfigure : IEntityTypeConfiguration<DiseaseRiskLevel>
{
public void Configure(EntityTypeBuilder<DiseaseRiskLevel> entity)
{
entity.HasKey(e => e.DiseaseRiskLevelId).HasName("pk_disease_risk_level");
entity.ToTable("disease_risk_level");
entity.HasIndex(e => e.DiseaseRiskLevelName, "ix_disease_risk_level").IsUnique();
entity.Property(e => e.DiseaseRiskLevelId)
.ValueGeneratedNever()
.HasColumnName("disease_risk_level_id");
entity.Property(e => e.CreationTime)
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
entity.Property(e => e.CreatorId).HasColumnName("creator_id");
entity.Property(e => e.DiseaseRiskId).HasColumnName("disease_risk_id");
entity.Property(e => e.DiseaseRiskLevelName)
.HasMaxLength(20)
.HasColumnName("disease_risk_level_name");
entity.Property(e => e.DiseaseRiskNormalLevelId).HasColumnName("disease_risk_normal_level_id");
entity.Property(e => e.DisplayOrder)
.HasDefaultValue(999999)
.HasColumnName("display_order");
entity.Property(e => e.Explain)
.HasMaxLength(255)
.HasColumnName("explain");
entity.Property(e => e.LastModificationTime)
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
entity.Property(e => e.LastModifierId).HasColumnName("last_modifier_id");
entity.Property(e => e.SimpleCode)
.HasMaxLength(20)
.HasColumnName("simple_code");
entity.Property(e => e.Suggestion)
.HasMaxLength(255)
.HasColumnName("suggestion");
entity.HasOne(d => d.DiseaseRisk).WithMany(p => p.DiseaseRiskLevels)
.HasForeignKey(d => d.DiseaseRiskId)
.OnDelete(DeleteBehavior.ClientSetNull)
.HasConstraintName("fk_disease_risk_level");
}
}
}

45
src/Shentun.WebPeis.EntityFrameworkCore/Configures/DiseaseRiskNormalLevelConfigure.cs

@ -0,0 +1,45 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Shentun.WebPeis.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
namespace Shentun.WebPeis.Configures
{
public class DiseaseRiskNormalLevelConfigure : IEntityTypeConfiguration<DiseaseRiskNormalLevel>
{
public void Configure(EntityTypeBuilder<DiseaseRiskNormalLevel> entity)
{
entity.HasKey(e => e.DiseaseRiskNormalLevelId).HasName("pk_disease_risk_normal_level");
entity.ToTable("disease_risk_normal_level");
entity.HasIndex(e => e.DiseaseRiskNormalLevelName, "ix_disease_disease_risk_normal_level").IsUnique();
entity.Property(e => e.DiseaseRiskNormalLevelId)
.ValueGeneratedNever()
.HasColumnName("disease_risk_normal_level_id");
entity.Property(e => e.CreationTime)
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
entity.Property(e => e.CreatorId).HasColumnName("creator_id");
entity.Property(e => e.DiseaseRiskNormalLevelName)
.HasMaxLength(20)
.HasColumnName("disease_risk_normal_level_name");
entity.Property(e => e.DisplayOrder)
.HasDefaultValue(999999)
.HasColumnName("display_order");
entity.Property(e => e.LastModificationTime)
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
entity.Property(e => e.LastModifierId).HasColumnName("last_modifier_id");
entity.Property(e => e.SimpleCode)
.HasMaxLength(20)
.HasColumnName("simple_code");
}
}
}

2
src/Shentun.WebPeis.EntityFrameworkCore/Configures/DiseaseScreeningTypeConfigure.cs

@ -20,7 +20,7 @@ namespace Shentun.WebPeis.Configures
entity.Property(e => e.DiseaseScreeningTypeId)
.ValueGeneratedNever()
.HasColumnName("question_type_id");
.HasColumnName("disease_screening_type_id");
entity.Property(e => e.CreationTime)
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");

45
src/Shentun.WebPeis.EntityFrameworkCore/Configures/QuestionAnswerChildConfigure.cs

@ -0,0 +1,45 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Shentun.WebPeis.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
namespace Shentun.WebPeis.Configures
{
public class QuestionAnswerChildConfigure : IEntityTypeConfiguration<QuestionAnswerChild>
{
public void Configure(EntityTypeBuilder<QuestionAnswerChild> entity)
{
entity.HasKey(e => e.QuestionAnswerChildId).HasName("pk_question_answer_child");
entity.ToTable("question_answer_child");
entity.HasIndex(e => e.QuestionAnswerChildName, "ix_question_answer_child").IsUnique();
entity.Property(e => e.QuestionAnswerChildId)
.ValueGeneratedNever()
.HasColumnName("question_answer_child_id");
entity.Property(e => e.CreationTime)
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
entity.Property(e => e.CreatorId).HasColumnName("creator_id");
entity.Property(e => e.DisplayOrder)
.HasDefaultValue(999999)
.HasColumnName("display_order");
entity.Property(e => e.LastModificationTime)
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
entity.Property(e => e.LastModifierId).HasColumnName("last_modifier_id");
entity.Property(e => e.QuestionAnswerChildName)
.HasMaxLength(20)
.HasColumnName("question_answer_child_name");
entity.Property(e => e.SimpleCode)
.HasMaxLength(20)
.HasColumnName("simple_code");
}
}
}

43
src/Shentun.WebPeis.EntityFrameworkCore/Configures/QuestionRegisterAnswerChildConfigure.cs

@ -0,0 +1,43 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Shentun.WebPeis.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
namespace Shentun.WebPeis.Configures
{
public class QuestionRegisterAnswerChildConfigure : IEntityTypeConfiguration<QuestionRegisterAnswerChild>
{
public void Configure(EntityTypeBuilder<QuestionRegisterAnswerChild> entity)
{
entity.HasKey(e => e.QuestionRegisterAnswerChildId).HasName("pk_question_register_answer_child");
entity.ToTable("question_register_answer_child");
entity.Property(e => e.QuestionRegisterAnswerChildId)
.ValueGeneratedNever()
.HasColumnName("question_register_answer_child_id");
entity.Property(e => e.Content)
.HasMaxLength(20)
.HasColumnName("content");
entity.Property(e => e.CreationTime)
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("creation_time");
entity.Property(e => e.CreatorId).HasColumnName("creator_id");
entity.Property(e => e.LastModificationTime)
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");
entity.Property(e => e.LastModifierId).HasColumnName("last_modifier_id");
entity.Property(e => e.QuestionRegisterAnswerId).HasColumnName("question_register_answer_id");
entity.HasOne(d => d.QuestionRegisterAnswer).WithMany(p => p.QuestionRegisterAnswerChildren)
.HasForeignKey(d => d.QuestionRegisterAnswerId)
.OnDelete(DeleteBehavior.ClientSetNull)
.HasConstraintName("fk_question_register_answer_child");
}
}
}

4
src/Shentun.WebPeis.EntityFrameworkCore/Configures/QuestionRegisterAnswerConfigure.cs

@ -18,6 +18,10 @@ namespace Shentun.WebPeis.Configures
entity.ToTable("question_register_answer");
entity.HasIndex(e => e.QuestionAnswerId, "IX_question_register_answer_question_answer_id");
entity.HasIndex(e => e.QuestionRegisterItemId, "IX_question_register_answer_question_register_item_id");
entity.Property(e => e.QuestionRegisterAnswerId)
.ValueGeneratedNever()
.HasColumnName("question_register_answer_id");

4
src/Shentun.WebPeis.EntityFrameworkCore/Configures/QuestionRegisterConfigure.cs

@ -14,8 +14,12 @@ namespace Shentun.WebPeis.Configures
{
public void Configure(EntityTypeBuilder<QuestionRegister> entity)
{
entity.HasKey(e => e.QuestionRegisterId).HasName("pk_question_register");
entity.ToTable("question_register");
entity.HasIndex(e => e.PersonId, "IX_question_register_person_id");
entity.Property(e => e.QuestionRegisterId)
.ValueGeneratedNever()
.HasColumnName("question_register_id");

6
src/Shentun.WebPeis.EntityFrameworkCore/Configures/QuestionRegisterItemConfigure.cs

@ -14,8 +14,14 @@ namespace Shentun.WebPeis.Configures
{
public void Configure(EntityTypeBuilder<QuestionRegisterItem> entity)
{
entity.HasKey(e => e.QuestionRegisterItemId).HasName("pk_question_register_item");
entity.ToTable("question_register_item");
entity.HasIndex(e => e.QuestionId, "IX_question_register_item_question_id");
entity.HasIndex(e => e.QuestionRegisterId, "IX_question_register_item_question_register_id");
entity.Property(e => e.QuestionRegisterItemId)
.ValueGeneratedNever()
.HasColumnName("question_register_item_id");

17
src/Shentun.WebPeis.EntityFrameworkCore/EntityFrameworkCore/WebPeisDbContext.cs

@ -144,6 +144,15 @@ public partial class WebPeisDbContext : AbpDbContext<WebPeisDbContext>,
public virtual DbSet<DiagnosisLevel> DiagnosisLevels { get; set; }
public virtual DbSet<DiseaseRisk> DiseaseRisks { get; set; }
public virtual DbSet<DiseaseRiskLevel> DiseaseRiskLevels { get; set; }
public virtual DbSet<DiseaseRiskLevelAsbitem> DiseaseRiskLevelAsbitems { get; set; }
public virtual DbSet<DiseaseRiskNormalLevel> DiseaseRiskNormalLevels { get; set; }
public virtual DbSet<ForSex> ForSexes { get; set; }
public virtual DbSet<Item> Items { get; set; }
@ -178,6 +187,8 @@ public partial class WebPeisDbContext : AbpDbContext<WebPeisDbContext>,
public virtual DbSet<QuestionRegisterAnswer> QuestionRegisterAnswers { get; set; }
public virtual DbSet<QuestionRegisterAnswerChild> QuestionRegisterAnswerChildren { get; set; }
public virtual DbSet<QuestionRegisterItem> QuestionRegisterItems { get; set; }
public virtual DbSet<QuestionType> QuestionTypes { get; set; }
@ -224,14 +235,14 @@ public partial class WebPeisDbContext : AbpDbContext<WebPeisDbContext>,
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
base.OnConfiguring(optionsBuilder);
#warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see https://go.microsoft.com/fwlink/?LinkId=723263.
//optionsBuilder.UseNpgsql("Host=10.1.12.140;Port=5432;Database=WebPeis;User ID=postgres;Password=st123");
#warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see https://go.microsoft.com/fwlink/?LinkId=723263.
//optionsBuilder.UseNpgsql("Host=10.1.12.140;Port=5432;Database=WebPeis;User ID=postgres;Password=st123");
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
OnModelCreatingPartial(modelBuilder);
modelBuilder.ConfigurePermissionManagement();

Loading…
Cancel
Save