6 changed files with 107 additions and 15 deletions
-
29src/Shentun.WebPeis.Domain/Models/AsbitemRecommendLevel.cs
-
16src/Shentun.WebPeis.Domain/Models/DiseaseRisk.cs
-
17src/Shentun.WebPeis.Domain/Models/DiseaseRiskLevel.cs
-
48src/Shentun.WebPeis.EntityFrameworkCore/Configures/AsbitemRecommendLevelConfigure.cs
-
4src/Shentun.WebPeis.EntityFrameworkCore/Configures/DiseaseRiskConfigure.cs
-
4src/Shentun.WebPeis.EntityFrameworkCore/Configures/DiseaseRiskLevelConfigure.cs
@ -0,0 +1,29 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using Volo.Abp.Domain.Entities; |
||||
|
using Volo.Abp.Domain.Entities.Auditing; |
||||
|
|
||||
|
namespace Shentun.WebPeis.Models |
||||
|
{ |
||||
|
public class AsbitemRecommendLevel : AuditedEntity, IHasConcurrencyStamp |
||||
|
{ |
||||
|
public Guid AsbitemRecommendLevelId { get; set; } |
||||
|
|
||||
|
public string AsbitemRecommendLevelName { get; set; } = null!; |
||||
|
|
||||
|
public string SimpleCode { get; set; } = null!; |
||||
|
|
||||
|
public int DisplayOrder { get; set; } |
||||
|
|
||||
|
public string? ConcurrencyStamp { get; set; } |
||||
|
|
||||
|
|
||||
|
public override object?[] GetKeys() |
||||
|
{ |
||||
|
return [AsbitemRecommendLevelId]; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,48 @@ |
|||||
|
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 AsbitemRecommendLevelConfigure : IEntityTypeConfiguration<AsbitemRecommendLevel> |
||||
|
{ |
||||
|
public void Configure(EntityTypeBuilder<AsbitemRecommendLevel> entity) |
||||
|
{ |
||||
|
entity.HasKey(e => e.AsbitemRecommendLevelId).HasName("pk_asbitem_recommend_level"); |
||||
|
|
||||
|
entity.ToTable("asbitem_recommend_level"); |
||||
|
|
||||
|
entity.HasIndex(e => e.AsbitemRecommendLevelName, "ix_asbitem_recommend_level").IsUnique(); |
||||
|
|
||||
|
entity.Property(e => e.AsbitemRecommendLevelId) |
||||
|
.ValueGeneratedNever() |
||||
|
.HasColumnName("asbitem_recommend_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.AsbitemRecommendLevelName) |
||||
|
.HasMaxLength(20) |
||||
|
.HasColumnName("asbitem_recommend_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"); |
||||
|
entity.Property(e => e.ConcurrencyStamp) |
||||
|
.HasMaxLength(40) |
||||
|
.HasColumnName("concurrency_stamp"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue