|
|
|
|
@ -0,0 +1,74 @@
|
|
|
|
|
// <auto-generated />
|
|
|
|
|
using System;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
|
using ProductService.Host.EntityFrameworkCore;
|
|
|
|
|
|
|
|
|
|
namespace ProductService.Host.Migrations
|
|
|
|
|
{
|
|
|
|
|
[DbContext(typeof(ProductServiceMigrationDbContext))]
|
|
|
|
|
[Migration("20190307065413_Added_ImageName_To_Product")]
|
|
|
|
|
partial class Added_ImageName_To_Product
|
|
|
|
|
{
|
|
|
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
|
|
|
|
#pragma warning disable 612, 618
|
|
|
|
|
modelBuilder
|
|
|
|
|
.HasAnnotation("ProductVersion", "2.2.0-rtm-35687")
|
|
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128)
|
|
|
|
|
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("ProductManagement.Product", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Code")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasMaxLength(32);
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
|
|
|
.IsConcurrencyToken()
|
|
|
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
|
|
|
.HasColumnName("CreationTime");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
|
|
|
.HasColumnName("CreatorId");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
|
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ImageName")
|
|
|
|
|
.HasMaxLength(128);
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
|
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
|
|
|
.HasColumnName("LastModifierId");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasMaxLength(256);
|
|
|
|
|
|
|
|
|
|
b.Property<float>("Price");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("StockCount");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Code");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Name");
|
|
|
|
|
|
|
|
|
|
b.ToTable("PmProducts");
|
|
|
|
|
});
|
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|