12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235 |
- // <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 WCS.Service;
- namespace WCS.Service.Migrations
- {
- [DbContext(typeof(WCSDB))]
- [Migration("20210705045814_Intt6")]
- partial class Intt6
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
- #pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("Relational:MaxIdentifierLength", 128)
- .HasAnnotation("ProductVersion", "5.0.5")
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_BCR80", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- b.Property<string>("CONTENT")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)");
- b.Property<string>("DEVICECODE")
- .HasColumnType("nvarchar(50)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<DateTime>("FRAME")
- .HasColumnType("datetime2");
- b.Property<bool>("ISLAST")
- .HasColumnType("bit");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_BCR80");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV520", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- b.Property<string>("DEVICECODE")
- .HasColumnType("nvarchar(50)");
- b.Property<short>("DestPosition_1")
- .HasColumnType("smallint");
- b.Property<short>("DestPosition_2")
- .HasColumnType("smallint");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<DateTime>("FRAME")
- .HasColumnType("datetime2");
- b.Property<bool>("ISLAST")
- .HasColumnType("bit");
- b.Property<short>("PRIORITY_1")
- .HasColumnType("smallint");
- b.Property<short>("PRIORITY_2")
- .HasColumnType("smallint");
- b.Property<short>("RES1_1")
- .HasColumnType("smallint");
- b.Property<short>("RES1_2")
- .HasColumnType("smallint");
- b.Property<short>("RES2_1")
- .HasColumnType("smallint");
- b.Property<short>("RES2_2")
- .HasColumnType("smallint");
- b.Property<short>("StartPosition_1")
- .HasColumnType("smallint");
- b.Property<short>("StartPosition_2")
- .HasColumnType("smallint");
- b.Property<int>("TaskID_1")
- .HasColumnType("int");
- b.Property<int>("TaskID_2")
- .HasColumnType("int");
- b.Property<short>("TaskType_1")
- .HasColumnType("smallint");
- b.Property<short>("TaskType_2")
- .HasColumnType("smallint");
- b.Property<short>("Trigger_1")
- .HasColumnType("smallint");
- b.Property<short>("Trigger_2")
- .HasColumnType("smallint");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_RGV520");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV521", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- b.Property<short>("ACT_V")
- .HasColumnType("smallint");
- b.Property<string>("DEVICECODE")
- .HasColumnType("nvarchar(50)");
- b.Property<short>("DestPosition_1")
- .HasColumnType("smallint");
- b.Property<short>("DestPosition_2")
- .HasColumnType("smallint");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<DateTime>("FRAME")
- .HasColumnType("datetime2");
- b.Property<bool>("Finish_1")
- .HasColumnType("bit");
- b.Property<bool>("Finish_2")
- .HasColumnType("bit");
- b.Property<bool>("ISLAST")
- .HasColumnType("bit");
- b.Property<float>("Mileage")
- .HasColumnType("real");
- b.Property<bool>("PH_Status_1")
- .HasColumnType("bit");
- b.Property<bool>("PH_Status_2")
- .HasColumnType("bit");
- b.Property<short>("PRIORITY_1")
- .HasColumnType("smallint");
- b.Property<short>("PRIORITY_2")
- .HasColumnType("smallint");
- b.Property<float>("Position")
- .HasColumnType("real");
- b.Property<short>("RES")
- .HasColumnType("smallint");
- b.Property<short>("RES1_2")
- .HasColumnType("smallint");
- b.Property<short>("RES2_1")
- .HasColumnType("smallint");
- b.Property<short>("RES2_2")
- .HasColumnType("smallint");
- b.Property<float>("Runtime")
- .HasColumnType("real");
- b.Property<short>("StartPosition_1")
- .HasColumnType("smallint");
- b.Property<short>("StartPosition_2")
- .HasColumnType("smallint");
- b.Property<short>("SystemStatus")
- .HasColumnType("smallint");
- b.Property<int>("TaskID_1")
- .HasColumnType("int");
- b.Property<int>("TaskID_2")
- .HasColumnType("int");
- b.Property<short>("TaskType_1")
- .HasColumnType("smallint");
- b.Property<short>("TaskType_2")
- .HasColumnType("smallint");
- b.Property<bool>("ToSition_1")
- .HasColumnType("bit");
- b.Property<bool>("ToSition_2")
- .HasColumnType("bit");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.Property<short>("WorkMode")
- .HasColumnType("smallint");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_RGV521");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV523", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- b.Property<string>("DEVICECODE")
- .HasColumnType("nvarchar(50)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<DateTime>("FRAME")
- .HasColumnType("datetime2");
- b.Property<int>("Fault")
- .HasColumnType("int");
- b.Property<int>("Fault1")
- .HasColumnType("int");
- b.Property<int>("Fault2")
- .HasColumnType("int");
- b.Property<bool>("ISLAST")
- .HasColumnType("bit");
- b.Property<int>("Status")
- .HasColumnType("int");
- b.Property<int>("Status1")
- .HasColumnType("int");
- b.Property<int>("Status2")
- .HasColumnType("int");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_RGV523");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC520", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- b.Property<string>("DEVICECODE")
- .HasColumnType("nvarchar(50)");
- b.Property<short>("ECol")
- .HasColumnType("smallint");
- b.Property<short>("EDepth")
- .HasColumnType("smallint");
- b.Property<short>("ELayer")
- .HasColumnType("smallint");
- b.Property<short>("ELine")
- .HasColumnType("smallint");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<short>("Endnumber2")
- .HasColumnType("smallint");
- b.Property<DateTime>("FRAME")
- .HasColumnType("datetime2");
- b.Property<short>("GoodsType")
- .HasColumnType("smallint");
- b.Property<short>("Handshake")
- .HasColumnType("smallint");
- b.Property<bool>("ISLAST")
- .HasColumnType("bit");
- b.Property<short>("SCol")
- .HasColumnType("smallint");
- b.Property<short>("SDepth")
- .HasColumnType("smallint");
- b.Property<short>("SLayer")
- .HasColumnType("smallint");
- b.Property<short>("SLine")
- .HasColumnType("smallint");
- b.Property<short>("SpeedMode")
- .HasColumnType("smallint");
- b.Property<short>("Startnumber1")
- .HasColumnType("smallint");
- b.Property<int>("TaskID")
- .HasColumnType("int");
- b.Property<short>("Trigger")
- .HasColumnType("smallint");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_SC520");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC521", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- b.Property<bool>("Alarm")
- .HasColumnType("bit");
- b.Property<short>("Col")
- .HasColumnType("smallint");
- b.Property<string>("DEVICECODE")
- .HasColumnType("nvarchar(50)");
- b.Property<short>("ECol")
- .HasColumnType("smallint");
- b.Property<short>("EDepth")
- .HasColumnType("smallint");
- b.Property<short>("ELayer")
- .HasColumnType("smallint");
- b.Property<short>("ELine")
- .HasColumnType("smallint");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<short>("Endnumber2")
- .HasColumnType("smallint");
- b.Property<DateTime>("FRAME")
- .HasColumnType("datetime2");
- b.Property<int>("FinishedTask")
- .HasColumnType("int");
- b.Property<bool>("ForkCenter")
- .HasColumnType("bit");
- b.Property<int>("ForkPos")
- .HasColumnType("int");
- b.Property<bool>("GetFinishi")
- .HasColumnType("bit");
- b.Property<short>("GoodsType")
- .HasColumnType("smallint");
- b.Property<bool>("Handshake")
- .HasColumnType("bit");
- b.Property<bool>("ISLAST")
- .HasColumnType("bit");
- b.Property<short>("Layer")
- .HasColumnType("smallint");
- b.Property<int>("LiftPos")
- .HasColumnType("int");
- b.Property<short>("Line")
- .HasColumnType("smallint");
- b.Property<bool>("Loaded")
- .HasColumnType("bit");
- b.Property<short>("Mode")
- .HasColumnType("smallint");
- b.Property<bool>("PutFinishi")
- .HasColumnType("bit");
- b.Property<byte>("RES")
- .HasColumnType("tinyint");
- b.Property<float>("Runtime")
- .HasColumnType("real");
- b.Property<short>("SCol")
- .HasColumnType("smallint");
- b.Property<short>("SDepth")
- .HasColumnType("smallint");
- b.Property<short>("SLayer")
- .HasColumnType("smallint");
- b.Property<short>("SLine")
- .HasColumnType("smallint");
- b.Property<short>("Startnumber1")
- .HasColumnType("smallint");
- b.Property<short>("Status")
- .HasColumnType("smallint");
- b.Property<bool>("TaskFinishi")
- .HasColumnType("bit");
- b.Property<int>("TaskID")
- .HasColumnType("int");
- b.Property<float>("TotalKM")
- .HasColumnType("real");
- b.Property<int>("TravelPos")
- .HasColumnType("int");
- b.Property<short>("Trigger")
- .HasColumnType("smallint");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_SC521");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC537", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- b.Property<string>("DEVICECODE")
- .HasColumnType("nvarchar(50)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<DateTime>("FRAME")
- .HasColumnType("datetime2");
- b.Property<bool>("ISLAST")
- .HasColumnType("bit");
- b.Property<decimal>("SCAlarm")
- .HasColumnType("decimal(20,0)");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_SC537");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION520", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- b.Property<short>("CONFIRM")
- .HasColumnType("smallint");
- b.Property<string>("DEVICECODE")
- .HasColumnType("nvarchar(50)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<short>("FLAGS")
- .HasColumnType("smallint");
- b.Property<DateTime>("FRAME")
- .HasColumnType("datetime2");
- b.Property<short>("GOODSCODE")
- .HasColumnType("smallint");
- b.Property<short>("GOODSEND")
- .HasColumnType("smallint");
- b.Property<short>("GOODSSIZE")
- .HasColumnType("smallint");
- b.Property<short>("GOODSSTART")
- .HasColumnType("smallint");
- b.Property<short>("GOODSTYPE")
- .HasColumnType("smallint");
- b.Property<bool>("ISLAST")
- .HasColumnType("bit");
- b.Property<int>("TASKNUM")
- .HasColumnType("int");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.Property<short>("WEIGHT")
- .HasColumnType("smallint");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_STATION520");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION521", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- b.Property<bool>("BCR_NOREAD")
- .HasColumnType("bit");
- b.Property<bool>("B_OUTSIDE")
- .HasColumnType("bit");
- b.Property<string>("DEVICECODE")
- .HasColumnType("nvarchar(50)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<DateTime>("FRAME")
- .HasColumnType("datetime2");
- b.Property<bool>("F_OUTSIDE")
- .HasColumnType("bit");
- b.Property<short>("GOODSCODE")
- .HasColumnType("smallint");
- b.Property<short>("GOODSEND")
- .HasColumnType("smallint");
- b.Property<short>("GOODSSIZE")
- .HasColumnType("smallint");
- b.Property<short>("GOODSSTART")
- .HasColumnType("smallint");
- b.Property<short>("GOODSTYPE")
- .HasColumnType("smallint");
- b.Property<bool>("GOODS_ERR")
- .HasColumnType("bit");
- b.Property<bool>("H_OUTSIDE")
- .HasColumnType("bit");
- b.Property<bool>("ISLAST")
- .HasColumnType("bit");
- b.Property<bool>("L_OUTSIDE")
- .HasColumnType("bit");
- b.Property<bool>("OVERLOAD")
- .HasColumnType("bit");
- b.Property<bool>("PH_STATUS")
- .HasColumnType("bit");
- b.Property<bool>("REQUEST")
- .HasColumnType("bit");
- b.Property<bool>("RES")
- .HasColumnType("bit");
- b.Property<bool>("RES1")
- .HasColumnType("bit");
- b.Property<bool>("RES2")
- .HasColumnType("bit");
- b.Property<bool>("RES3")
- .HasColumnType("bit");
- b.Property<bool>("RES4")
- .HasColumnType("bit");
- b.Property<bool>("RES5")
- .HasColumnType("bit");
- b.Property<bool>("R_OUTSIDE")
- .HasColumnType("bit");
- b.Property<int>("TASKNUM")
- .HasColumnType("int");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.Property<int>("WEIGHT")
- .HasColumnType("int");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_STATION521");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION523", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- b.Property<string>("DEVICECODE")
- .HasColumnType("nvarchar(50)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<DateTime>("FRAME")
- .HasColumnType("datetime2");
- b.Property<int>("Fault")
- .HasColumnType("int");
- b.Property<bool>("ISLAST")
- .HasColumnType("bit");
- b.Property<short>("RES")
- .HasColumnType("smallint");
- b.Property<float>("RunTime")
- .HasColumnType("real");
- b.Property<short>("Status")
- .HasColumnType("smallint");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.HasKey("ID");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_STATION523");
- });
- modelBuilder.Entity("WCS.Entity.WCS_CMD", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- b.Property<string>("DEVICE_CODE")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<string>("PROPERTY")
- .HasMaxLength(32)
- .HasColumnType("nvarchar(32)");
- b.Property<string>("PROTOCOL")
- .HasMaxLength(256)
- .HasColumnType("nvarchar(256)");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<string>("VALUE")
- .HasMaxLength(512)
- .HasColumnType("nvarchar(512)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.Property<int>("WCSVERSION")
- .HasColumnType("int");
- b.HasKey("ID");
- b.ToTable("WCS_CMD");
- });
- modelBuilder.Entity("WCS.Entity.WCS_DATABLOCK", b =>
- {
- b.Property<string>("CODE")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)");
- b.Property<int>("DATALENGTH")
- .HasColumnType("int");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<int>("LENGTH")
- .HasColumnType("int");
- b.Property<string>("NAME")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)");
- b.Property<int>("NO")
- .HasColumnType("int");
- b.Property<bool>("NOUPDATE")
- .HasColumnType("bit");
- b.Property<string>("PLCCODE")
- .HasColumnType("nvarchar(20)");
- b.Property<string>("PROTOCOL")
- .IsRequired()
- .HasMaxLength(200)
- .HasColumnType("nvarchar(200)");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.HasKey("CODE");
- b.HasIndex("PLCCODE");
- b.ToTable("WCS_DATABLOCK");
- });
- modelBuilder.Entity("WCS.Entity.WCS_DEVICE", b =>
- {
- b.Property<string>("CODE")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<string>("NAME")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<string>("TYPE")
- .IsRequired()
- .HasMaxLength(100)
- .HasColumnType("nvarchar(100)");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.HasKey("CODE");
- b.ToTable("WCS_DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.WCS_DEVICEPROTOCOL", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- b.Property<string>("DBCODE")
- .HasColumnType("nvarchar(20)");
- b.Property<string>("DEVICECODE")
- .IsRequired()
- .HasColumnType("nvarchar(50)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<short>("POSITION")
- .HasColumnType("smallint");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.HasKey("ID");
- b.HasIndex("DBCODE");
- b.HasIndex("DEVICECODE");
- b.ToTable("WCS_DEVICEPROTOCOL");
- });
- modelBuilder.Entity("WCS.Entity.WCS_EXCEPTION", b =>
- {
- b.Property<int>("ID")
- .ValueGeneratedOnAdd()
- .HasColumnType("int")
- .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<string>("MSG")
- .HasMaxLength(1000)
- .HasColumnType("nvarchar(1000)");
- b.Property<DateTime>("STARTTIME")
- .HasColumnType("datetime2");
- b.Property<int>("TIMES")
- .HasColumnType("int");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.HasKey("ID");
- b.ToTable("WCS_EXCEPTION");
- });
- modelBuilder.Entity("WCS.Entity.WCS_PLC", b =>
- {
- b.Property<string>("CODE")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)");
- b.Property<bool>("ENABLED")
- .HasColumnType("bit");
- b.Property<string>("IP")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)");
- b.Property<string>("MODEL")
- .HasMaxLength(10)
- .HasColumnType("nvarchar(10)");
- b.Property<string>("NAME")
- .HasMaxLength(20)
- .HasColumnType("nvarchar(20)");
- b.Property<int>("PORT")
- .HasColumnType("int");
- b.Property<int>("RACK")
- .HasColumnType("int");
- b.Property<int>("SLOT")
- .HasColumnType("int");
- b.Property<int>("TYPE")
- .HasColumnType("int");
- b.Property<DateTime>("UPDATETIME")
- .HasColumnType("datetime2");
- b.Property<string>("UPDATEUSER")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte[]>("VER")
- .IsConcurrencyToken()
- .ValueGeneratedOnAddOrUpdate()
- .HasColumnType("rowversion");
- b.HasKey("CODE");
- b.ToTable("WCS_PLC");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_BCR80", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany()
- .HasForeignKey("DEVICECODE");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV520", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany()
- .HasForeignKey("DEVICECODE");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV521", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany()
- .HasForeignKey("DEVICECODE");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV523", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany()
- .HasForeignKey("DEVICECODE");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC520", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany()
- .HasForeignKey("DEVICECODE");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC521", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany()
- .HasForeignKey("DEVICECODE");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC537", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany()
- .HasForeignKey("DEVICECODE");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION520", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany()
- .HasForeignKey("DEVICECODE");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION521", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany()
- .HasForeignKey("DEVICECODE");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION523", b =>
- {
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany()
- .HasForeignKey("DEVICECODE");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.WCS_DATABLOCK", b =>
- {
- b.HasOne("WCS.Entity.WCS_PLC", "PLC")
- .WithMany()
- .HasForeignKey("PLCCODE");
- b.Navigation("PLC");
- });
- modelBuilder.Entity("WCS.Entity.WCS_DEVICEPROTOCOL", b =>
- {
- b.HasOne("WCS.Entity.WCS_DATABLOCK", "DB")
- .WithMany()
- .HasForeignKey("DBCODE");
- b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
- .WithMany("PROTOCOLS")
- .HasForeignKey("DEVICECODE")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
- b.Navigation("DB");
- b.Navigation("DEVICE");
- });
- modelBuilder.Entity("WCS.Entity.WCS_DEVICE", b =>
- {
- b.Navigation("PROTOCOLS");
- });
- #pragma warning restore 612, 618
- }
- }
- }
|