| | |
| | | using Microsoft.EntityFrameworkCore; |
| | | using Volo.Abp; |
| | | using Volo.Abp.EntityFrameworkCore.Modeling; |
| | | using CMS.Plugin.HIAWms.Domain.Shared.Enums; |
| | | |
| | | namespace CMS.Plugin.HIAWms.EntityFrameworkCore.Extensions; |
| | | |
| | |
| | | builder.Entity<WmsMaterial>(b => |
| | | { |
| | | // 配置表名和注释 |
| | | b.ToTable((CMSPluginDbProperties.DbTablePrefix + "_Wms_Materials").ToLower(), |
| | | b.ToTable((CMSPluginDbProperties.DbTablePrefix + "_WmsMaterials").ToLower(), |
| | | CMSPluginDbProperties.DbSchema) |
| | | .HasComment("物料基础信息表"); |
| | | |
| | |
| | | .HasComment("长度(单位:m)"); |
| | | |
| | | b.Property(x => x.IsMainBranch) |
| | | .HasDefaultValue(false) |
| | | .HasDefaultValue(YesNoEnum.N) |
| | | .HasComment("是否为主支管"); |
| | | |
| | | b.Property(x => x.Factory) |