schangxiang@126.com
2025-05-08 8e83181db5ff4463949c8a15e56a2163a5616845
Weben_CMSרÓôúÂëÉú³ÉÆ÷/Weben_CMS_TemplateDemo/server/src/CMS.Plugin.HIAWms.EntityFrameworkCore/Extensions/CMSPluginEfCoreExtensions.WmsMaterial.cs
@@ -1,7 +1,9 @@
using CMS.Plugin.HIAWms.Domain;
using CMS.Plugin.HIAWms.Domain.Extension;
using CMS.Plugin.HIAWms.Domain.Shared.Enums;
using CMS.Plugin.HIAWms.Domain.WmsMaterial;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Volo.Abp;
using Volo.Abp.EntityFrameworkCore.Modeling;
@@ -10,7 +12,7 @@
/// <summary>
/// EfCore扩展
/// </summary>
public  static partial class CMSPluginEfCoreExtensions
public static partial class CMSPluginEfCoreExtensions
{
    /// <summary>
    /// Includes the details.
@@ -138,6 +140,69 @@
            b.HasIndex(x => x.PurchaseType);           // é‡‡è´­ç±»åž‹ç´¢å¼•(如需查询过滤)
            b.HasIndex(x => x.MaterialType);           // ç‰©æ–™ç±»åž‹ç´¢å¼•(如需查询过滤)
            b.xx();
            //            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.CreationTime)
            //.IsRequired()
            //.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.LastModificationTime)
            //  .IsRequired(false)
            //  .HasComment("修改时间");
            //            b.Property(x => x.IsDeleted)
            //      .IsRequired()
            //      .HasComment("是否删除");
            //            b.Property(x => x.DeleterId)
            //      .HasMaxLength(36)
            //      .IsRequired(false)
            //      .HasComment("删除人ID");
            //            b.Property(x => x.DeletionTime)
            //  .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.Sort)
            //                .HasDefaultValue(0)
            //                .HasComment("排序");
            //            b.Property(x => x.Remark)
            //                .HasMaxLength(500)
            //                .IsRequired(false)
            //                .HasComment("备注");
            //            b.Property(x => x.IsDisabled)
            //                .IsRequired(false)
            //                .HasDefaultValue(false)
            //                .HasComment("是否禁用");
            b.ApplyObjectExtensionMappings();
        });
    }