using Microsoft.EntityFrameworkCore.Metadata.Builders; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Shentun.WebPeis.Models; namespace Shentun.WebPeis.Configures { internal class CompanyIntroductionConfigure : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder entity) { entity.ToTable("company_introduction", tb => tb.HasComment("企业介绍")); entity.Property(e => e.CompanyIntroductionId).ValueGeneratedNever().HasColumnName("company_introduction_id"); entity.Property(e => e.ConcurrencyStamp).HasMaxLength(40).HasColumnName("concurrency_stamp"); entity.Property(e => e.Content).HasMaxLength(4000).HasComment("内容").HasColumnName("content"); entity.Property(e => e.ContentType).HasMaxLength(1).HasDefaultValueSql("'0'::bpchar").HasComment("内容类型 0-标题 1-段落内容").HasColumnName("content_type"); entity.Property(e => e.DisplayOrder).HasColumnName("display_order"); entity.Property(e => e.CreationTime) .HasColumnType("timestamp without time zone") .HasColumnName("creation_time"); entity.Property(e => e.CreatorId).HasColumnName("creator_id"); entity.Property(e => e.LastModificationTime) .HasColumnType("timestamp without time zone") .HasColumnName("last_modification_time"); entity.Property(e => e.LastModifierId).HasColumnName("last_modifier_id"); } } }