//
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Volo.Abp.EntityFrameworkCore;
using Win_in.Sfs.Label.EntityFrameworkCore;
namespace Win_in.Sfs.Label.Migrations
{
[DbContext(typeof(LabelHttpApiHostMigrationsDbContext))]
[Migration("20220624030502_CountLabel")]
partial class CountLabel
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("ProductVersion", "5.0.17")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
modelBuilder.Entity("Win_in.Sfs.Label.Domain.CountLabel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("PalletlNumber")
.HasMaxLength(4096)
.HasColumnType("int");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasColumnName("Remark");
b.Property("RuleCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("Company", "RuleCode", "PalletlNumber")
.IsUnique();
b.ToTable("LabelCountLabel");
});
modelBuilder.Entity("Win_in.Sfs.Label.Domain.PalletCode", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("PalletlNumber")
.HasMaxLength(4096)
.HasColumnType("int");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasColumnName("Remark");
b.Property("RuleCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("Company", "RuleCode", "PalletlNumber")
.IsUnique();
b.ToTable("LabelPalletCode");
});
modelBuilder.Entity("Win_in.Sfs.Label.Domain.PalletLabel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Code")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("HasItem")
.HasMaxLength(64)
.HasColumnType("bit");
b.Property("LabelStatus")
.HasColumnType("int");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("ParentId")
.HasMaxLength(64)
.HasColumnType("uniqueidentifier");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasColumnName("Remark");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("Code", "Company")
.IsUnique();
b.ToTable("LabelPalletLabel");
});
modelBuilder.Entity("Win_in.Sfs.Label.Domain.ProductionLabel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Code")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("ContainerCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("DocumentCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("FullBarcodeString")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("ItemCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("LabelStatus")
.HasColumnType("int");
b.Property("LabelType")
.HasColumnType("int");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("Lot")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("RecommendLocationCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasColumnName("Remark");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("Code", "Company")
.IsUnique();
b.ToTable("LabelProductionLabel");
});
modelBuilder.Entity("Win_in.Sfs.Label.Domain.PurchaseLabel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Code")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("ContainerCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("DocumentCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("FullBarcodeString")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("ItemCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("LabelStatus")
.HasColumnType("int");
b.Property("LabelType")
.HasColumnType("int");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("Lot")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("RecommendLocationCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasColumnName("Remark");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("Code", "Company")
.IsUnique();
b.ToTable("LabelPurchaseLabel");
});
modelBuilder.Entity("Win_in.Sfs.Label.Domain.SaleLabel", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Code")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("ContainerCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("DocumentCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("FullBarcodeString")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("ItemCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("LabelStatus")
.HasColumnType("int");
b.Property("LabelType")
.HasColumnType("int");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("Lot")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasColumnName("Remark");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("Code", "Company")
.IsUnique();
b.ToTable("LabelSaleLabel");
});
modelBuilder.Entity("Win_in.Sfs.Label.Domain.SerialCode", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasColumnName("Remark");
b.Property("RuleCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("SerialNumber")
.HasMaxLength(4096)
.HasColumnType("int");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("Company", "RuleCode", "SerialNumber")
.IsUnique();
b.ToTable("LabelSerialCode");
});
modelBuilder.Entity("Win_in.Sfs.Label.Domain.PalletLabel", b =>
{
b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 =>
{
b1.Property("PalletLabelId")
.HasColumnType("uniqueidentifier");
b1.Property("Desc1")
.HasColumnType("nvarchar(max)");
b1.Property("Desc2")
.HasColumnType("nvarchar(max)");
b1.Property("Id")
.HasColumnType("uniqueidentifier");
b1.Property("Name")
.HasColumnType("nvarchar(max)");
b1.HasKey("PalletLabelId");
b1.ToTable("LabelPalletLabel");
b1.WithOwner()
.HasForeignKey("PalletLabelId");
});
b.Navigation("Item");
});
modelBuilder.Entity("Win_in.Sfs.Label.Domain.ProductionLabel", b =>
{
b.OwnsOne("Win_in.Sfs.Label.Domain.Shared.ProductionInfo", "ProductionInfo", b1 =>
{
b1.Property("ProductionLabelId")
.HasColumnType("uniqueidentifier");
b1.Property("ProductionInfoName")
.HasColumnType("nvarchar(max)");
b1.HasKey("ProductionLabelId");
b1.ToTable("LabelProductionLabel");
b1.WithOwner()
.HasForeignKey("ProductionLabelId");
});
b.OwnsOne("Win_in.Sfs.Label.Domain.Shared.QualityInfo", "QualityInfo", b1 =>
{
b1.Property("ProductionLabelId")
.HasColumnType("uniqueidentifier");
b1.Property("QualityInfoName")
.HasColumnType("nvarchar(max)");
b1.HasKey("ProductionLabelId");
b1.ToTable("LabelProductionLabel");
b1.WithOwner()
.HasForeignKey("ProductionLabelId");
});
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 =>
{
b1.Property("ProductionLabelId")
.HasColumnType("uniqueidentifier");
b1.Property("ProduceDate")
.HasColumnType("datetime2");
b1.Property("SupplierBatch")
.HasColumnType("nvarchar(max)");
b1.HasKey("ProductionLabelId");
b1.ToTable("LabelProductionLabel");
b1.WithOwner()
.HasForeignKey("ProductionLabelId");
});
b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 =>
{
b1.Property("ProductionLabelId")
.HasColumnType("uniqueidentifier");
b1.Property("Desc1")
.HasColumnType("nvarchar(max)");
b1.Property("Desc2")
.HasColumnType("nvarchar(max)");
b1.Property("Id")
.HasColumnType("uniqueidentifier");
b1.Property("Name")
.HasColumnType("nvarchar(max)");
b1.HasKey("ProductionLabelId");
b1.ToTable("LabelProductionLabel");
b1.WithOwner()
.HasForeignKey("ProductionLabelId");
});
b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 =>
{
b1.Property("ProductionLabelId")
.HasColumnType("uniqueidentifier");
b1.Property("PackQty")
.HasColumnType("decimal(18,2)");
b1.Property("PackUom")
.HasColumnType("nvarchar(max)");
b1.HasKey("ProductionLabelId");
b1.ToTable("LabelProductionLabel");
b1.WithOwner()
.HasForeignKey("ProductionLabelId");
});
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 =>
{
b1.Property("ProductionLabelId")
.HasColumnType("uniqueidentifier");
b1.Property("Qty")
.HasColumnType("decimal(18,2)");
b1.Property("Uom")
.HasColumnType("nvarchar(max)");
b1.HasKey("ProductionLabelId");
b1.ToTable("LabelProductionLabel");
b1.WithOwner()
.HasForeignKey("ProductionLabelId");
});
b.Navigation("Batch");
b.Navigation("Item");
b.Navigation("ProductionInfo");
b.Navigation("Qty");
b.Navigation("QualityInfo");
b.Navigation("StdPack");
});
modelBuilder.Entity("Win_in.Sfs.Label.Domain.PurchaseLabel", b =>
{
b.OwnsOne("Win_in.Sfs.Label.Domain.Shared.PurchaseInfo", "PurchaseInfo", b1 =>
{
b1.Property("PurchaseLabelId")
.HasColumnType("uniqueidentifier");
b1.Property("PurchaseInfoName")
.HasColumnType("nvarchar(max)");
b1.HasKey("PurchaseLabelId");
b1.ToTable("LabelPurchaseLabel");
b1.WithOwner()
.HasForeignKey("PurchaseLabelId");
});
b.OwnsOne("Win_in.Sfs.Label.Domain.Shared.QualityInfo", "QualityInfo", b1 =>
{
b1.Property("PurchaseLabelId")
.HasColumnType("uniqueidentifier");
b1.Property("QualityInfoName")
.HasColumnType("nvarchar(max)");
b1.HasKey("PurchaseLabelId");
b1.ToTable("LabelPurchaseLabel");
b1.WithOwner()
.HasForeignKey("PurchaseLabelId");
});
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 =>
{
b1.Property("PurchaseLabelId")
.HasColumnType("uniqueidentifier");
b1.Property("ProduceDate")
.HasColumnType("datetime2");
b1.Property("SupplierBatch")
.HasColumnType("nvarchar(max)");
b1.HasKey("PurchaseLabelId");
b1.ToTable("LabelPurchaseLabel");
b1.WithOwner()
.HasForeignKey("PurchaseLabelId");
});
b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 =>
{
b1.Property("PurchaseLabelId")
.HasColumnType("uniqueidentifier");
b1.Property("Desc1")
.HasColumnType("nvarchar(max)");
b1.Property("Desc2")
.HasColumnType("nvarchar(max)");
b1.Property("Id")
.HasColumnType("uniqueidentifier");
b1.Property("Name")
.HasColumnType("nvarchar(max)");
b1.HasKey("PurchaseLabelId");
b1.ToTable("LabelPurchaseLabel");
b1.WithOwner()
.HasForeignKey("PurchaseLabelId");
});
b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 =>
{
b1.Property("PurchaseLabelId")
.HasColumnType("uniqueidentifier");
b1.Property("PackQty")
.HasColumnType("decimal(18,2)");
b1.Property("PackUom")
.HasColumnType("nvarchar(max)");
b1.HasKey("PurchaseLabelId");
b1.ToTable("LabelPurchaseLabel");
b1.WithOwner()
.HasForeignKey("PurchaseLabelId");
});
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 =>
{
b1.Property("PurchaseLabelId")
.HasColumnType("uniqueidentifier");
b1.Property("Qty")
.HasColumnType("decimal(18,2)");
b1.Property("Uom")
.HasColumnType("nvarchar(max)");
b1.HasKey("PurchaseLabelId");
b1.ToTable("LabelPurchaseLabel");
b1.WithOwner()
.HasForeignKey("PurchaseLabelId");
});
b.Navigation("Batch");
b.Navigation("Item");
b.Navigation("PurchaseInfo");
b.Navigation("Qty");
b.Navigation("QualityInfo");
b.Navigation("StdPack");
});
modelBuilder.Entity("Win_in.Sfs.Label.Domain.SaleLabel", b =>
{
b.OwnsOne("Win_in.Sfs.Label.Domain.Shared.QualityInfo", "QualityInfo", b1 =>
{
b1.Property("SaleLabelId")
.HasColumnType("uniqueidentifier");
b1.Property("QualityInfoName")
.HasColumnType("nvarchar(max)");
b1.HasKey("SaleLabelId");
b1.ToTable("LabelSaleLabel");
b1.WithOwner()
.HasForeignKey("SaleLabelId");
});
b.OwnsOne("Win_in.Sfs.Label.Domain.Shared.SaleInfo", "SaleInfo", b1 =>
{
b1.Property("SaleLabelId")
.HasColumnType("uniqueidentifier");
b1.Property("SaleInfoName")
.HasColumnType("nvarchar(max)");
b1.HasKey("SaleLabelId");
b1.ToTable("LabelSaleLabel");
b1.WithOwner()
.HasForeignKey("SaleLabelId");
});
b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 =>
{
b1.Property("SaleLabelId")
.HasColumnType("uniqueidentifier");
b1.Property("ProduceDate")
.HasColumnType("datetime2");
b1.Property("SupplierBatch")
.HasColumnType("nvarchar(max)");
b1.HasKey("SaleLabelId");
b1.ToTable("LabelSaleLabel");
b1.WithOwner()
.HasForeignKey("SaleLabelId");
});
b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 =>
{
b1.Property("SaleLabelId")
.HasColumnType("uniqueidentifier");
b1.Property("Desc1")
.HasColumnType("nvarchar(max)");
b1.Property("Desc2")
.HasColumnType("nvarchar(max)");
b1.Property("Id")
.HasColumnType("uniqueidentifier");
b1.Property("Name")
.HasColumnType("nvarchar(max)");
b1.HasKey("SaleLabelId");
b1.ToTable("LabelSaleLabel");
b1.WithOwner()
.HasForeignKey("SaleLabelId");
});
b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 =>
{
b1.Property("SaleLabelId")
.HasColumnType("uniqueidentifier");
b1.Property("PackQty")
.HasColumnType("decimal(18,2)");
b1.Property("PackUom")
.HasColumnType("nvarchar(max)");
b1.HasKey("SaleLabelId");
b1.ToTable("LabelSaleLabel");
b1.WithOwner()
.HasForeignKey("SaleLabelId");
});
b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 =>
{
b1.Property("SaleLabelId")
.HasColumnType("uniqueidentifier");
b1.Property("Qty")
.HasColumnType("decimal(18,2)");
b1.Property("Uom")
.HasColumnType("nvarchar(max)");
b1.HasKey("SaleLabelId");
b1.ToTable("LabelSaleLabel");
b1.WithOwner()
.HasForeignKey("SaleLabelId");
});
b.Navigation("Batch");
b.Navigation("Item");
b.Navigation("Qty");
b.Navigation("QualityInfo");
b.Navigation("SaleInfo");
b.Navigation("StdPack");
});
#pragma warning restore 612, 618
}
}
}