| | |
| | | using Microsoft.EntityFrameworkCore; |
| | | using Microsoft.EntityFrameworkCore.Metadata.Builders; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | //using Microsoft.EntityFrameworkCore; |
| | | //using Microsoft.EntityFrameworkCore.Metadata.Builders; |
| | | //using System; |
| | | //using System.Collections.Generic; |
| | | //using System.Linq; |
| | | //using System.Text; |
| | | //using System.Threading.Tasks; |
| | | |
| | | namespace CMS.Plugin.HIAWms.Domain.Extension |
| | | { |
| | | public static class EntityTypeBuilderExtensions |
| | | { |
| | | public static void xx<TEntity>(this EntityTypeBuilder<TEntity> b) where TEntity : MyFullAuditedAggregateRoot<Guid> |
| | | { |
| | | b.Property(x => x.CreatorId) |
| | | .HasMaxLength(36) |
| | | .IsRequired(false) |
| | | .HasComment("å建人ID"); |
| | | //namespace CMS.Plugin.HIAWms.Domain.Extension |
| | | //{ |
| | | // public static class EntityTypeBuilderExtensions |
| | | // { |
| | | // public static void xx<TEntity>(this EntityTypeBuilder<TEntity> b) where TEntity : MyFullAuditedAggregateRoot<Guid> |
| | | // { |
| | | // b.Property(x => x.CreatorId) |
| | | // .HasMaxLength(36) |
| | | // .IsRequired(false) |
| | | // .HasComment("å建人ID"); |
| | | |
| | | b.Property(x => x.CreatorName) |
| | | .HasMaxLength(64) |
| | | .IsRequired(false) |
| | | .HasComment("å建人"); |
| | | // b.Property(x => x.CreatorName) |
| | | // .HasMaxLength(64) |
| | | // .IsRequired(false) |
| | | // .HasComment("å建人"); |
| | | |
| | | b.Property(x => x.CreationTime) |
| | | .IsRequired() |
| | | .HasComment("å建æ¶é´"); |
| | | // b.Property(x => x.CreationTime) |
| | | // .IsRequired() |
| | | // .HasComment("å建æ¶é´"); |
| | | |
| | | b.Property(x => x.LastModifierName) |
| | | .HasMaxLength(64) |
| | | .IsRequired(false) |
| | | .HasComment("ä¿®æ¹äºº"); |
| | | // b.Property(x => x.LastModifierName) |
| | | // .HasMaxLength(64) |
| | | // .IsRequired(false) |
| | | // .HasComment("ä¿®æ¹äºº"); |
| | | |
| | | b.Property(x => x.LastModifierId) |
| | | .HasMaxLength(36) |
| | | .IsRequired(false) |
| | | .HasComment("ä¿®æ¹äººID"); |
| | | // b.Property(x => x.LastModifierId) |
| | | // .HasMaxLength(36) |
| | | // .IsRequired(false) |
| | | // .HasComment("ä¿®æ¹äººID"); |
| | | |
| | | b.Property(x => x.LastModificationTime) |
| | | .IsRequired(false) |
| | | .HasComment("ä¿®æ¹æ¶é´"); |
| | | // b.Property(x => x.LastModificationTime) |
| | | // .IsRequired(false) |
| | | // .HasComment("ä¿®æ¹æ¶é´"); |
| | | |
| | | b.Property(x => x.IsDeleted) |
| | | .IsRequired() |
| | | .HasComment("æ¯å¦å é¤"); |
| | | // b.Property(x => x.IsDeleted) |
| | | // .IsRequired() |
| | | // .HasComment("æ¯å¦å é¤"); |
| | | |
| | | b.Property(x => x.DeleterId) |
| | | .HasMaxLength(36) |
| | | .IsRequired(false) |
| | | .HasComment("å é¤äººID"); |
| | | // b.Property(x => x.DeleterId) |
| | | // .HasMaxLength(36) |
| | | // .IsRequired(false) |
| | | // .HasComment("å é¤äººID"); |
| | | |
| | | b.Property(x => x.DeletionTime) |
| | | .IsRequired(false) |
| | | .HasComment("å 餿¶é´"); |
| | | // b.Property(x => x.DeletionTime) |
| | | // .IsRequired(false) |
| | | // .HasComment("å 餿¶é´"); |
| | | |
| | | b.Property(x => x.ExtraProperties) |
| | | .IsRequired(false) |
| | | .HasComment("æ©å±å±æ§"); |
| | | // b.Property(x => x.ExtraProperties) |
| | | // .IsRequired(false) |
| | | // .HasComment("æ©å±å±æ§"); |
| | | |
| | | b.Property(x => x.ConcurrencyStamp) |
| | | .IsRequired(false) |
| | | .HasMaxLength(40) |
| | | .HasComment("å¹¶åæ³"); |
| | | // b.Property(x => x.ConcurrencyStamp) |
| | | // .IsRequired(false) |
| | | // .HasMaxLength(40) |
| | | // .HasComment("å¹¶åæ³"); |
| | | |
| | | b.Property(x => x.Sort) |
| | | .HasDefaultValue(0) |
| | | .HasComment("æåº"); |
| | | // b.Property(x => x.Sort) |
| | | // .HasDefaultValue(0) |
| | | // .HasComment("æåº"); |
| | | |
| | | b.Property(x => x.Remark) |
| | | .HasMaxLength(500) |
| | | .IsRequired(false) |
| | | .HasComment("夿³¨"); |
| | | // b.Property(x => x.Remark) |
| | | // .HasMaxLength(500) |
| | | // .IsRequired(false) |
| | | // .HasComment("夿³¨"); |
| | | |
| | | b.Property(x => x.IsDisabled) |
| | | .IsRequired(false) |
| | | .HasDefaultValue(false) |
| | | .HasComment("æ¯å¦ç¦ç¨"); |
| | | } |
| | | } |
| | | } |
| | | // b.Property(x => x.IsDisabled) |
| | | // .IsRequired(false) |
| | | // .HasDefaultValue(false) |
| | | // .HasComment("æ¯å¦ç¦ç¨"); |
| | | // } |
| | | // } |
| | | //} |