20210705045612_Init7-5-2.Designer.cs 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235
  1. // <auto-generated />
  2. using System;
  3. using Microsoft.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore.Infrastructure;
  5. using Microsoft.EntityFrameworkCore.Metadata;
  6. using Microsoft.EntityFrameworkCore.Migrations;
  7. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  8. using WCS.Service;
  9. namespace WCS.Service.Migrations
  10. {
  11. [DbContext(typeof(WCSDB))]
  12. [Migration("20210705045612_Init7-5-2")]
  13. partial class Init752
  14. {
  15. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  16. {
  17. #pragma warning disable 612, 618
  18. modelBuilder
  19. .HasAnnotation("Relational:MaxIdentifierLength", 128)
  20. .HasAnnotation("ProductVersion", "5.0.5")
  21. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  22. modelBuilder.Entity("WCS.Entity.Protocol.WCS_BCR80", b =>
  23. {
  24. b.Property<int>("ID")
  25. .ValueGeneratedOnAdd()
  26. .HasColumnType("int")
  27. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  28. b.Property<string>("CONTENT")
  29. .HasMaxLength(20)
  30. .HasColumnType("nvarchar(20)");
  31. b.Property<string>("DEVICECODE")
  32. .HasColumnType("nvarchar(50)");
  33. b.Property<bool>("ENABLED")
  34. .HasColumnType("bit");
  35. b.Property<DateTime>("FRAME")
  36. .HasColumnType("datetime2");
  37. b.Property<bool>("ISLAST")
  38. .HasColumnType("bit");
  39. b.Property<DateTime>("UPDATETIME")
  40. .HasColumnType("datetime2");
  41. b.Property<string>("UPDATEUSER")
  42. .IsRequired()
  43. .HasMaxLength(50)
  44. .HasColumnType("nvarchar(50)");
  45. b.Property<byte[]>("VER")
  46. .IsConcurrencyToken()
  47. .ValueGeneratedOnAddOrUpdate()
  48. .HasColumnType("rowversion");
  49. b.Property<int>("WCSVERSION")
  50. .HasColumnType("int");
  51. b.HasKey("ID");
  52. b.HasIndex("DEVICECODE");
  53. b.ToTable("WCS_BCR80");
  54. });
  55. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV520", b =>
  56. {
  57. b.Property<int>("ID")
  58. .ValueGeneratedOnAdd()
  59. .HasColumnType("int")
  60. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  61. b.Property<string>("DEVICECODE")
  62. .HasColumnType("nvarchar(50)");
  63. b.Property<short>("DestPosition_1")
  64. .HasColumnType("smallint");
  65. b.Property<short>("DestPosition_2")
  66. .HasColumnType("smallint");
  67. b.Property<bool>("ENABLED")
  68. .HasColumnType("bit");
  69. b.Property<DateTime>("FRAME")
  70. .HasColumnType("datetime2");
  71. b.Property<bool>("ISLAST")
  72. .HasColumnType("bit");
  73. b.Property<short>("PRIORITY_1")
  74. .HasColumnType("smallint");
  75. b.Property<short>("PRIORITY_2")
  76. .HasColumnType("smallint");
  77. b.Property<short>("RES1_1")
  78. .HasColumnType("smallint");
  79. b.Property<short>("RES1_2")
  80. .HasColumnType("smallint");
  81. b.Property<short>("RES2_1")
  82. .HasColumnType("smallint");
  83. b.Property<short>("RES2_2")
  84. .HasColumnType("smallint");
  85. b.Property<short>("StartPosition_1")
  86. .HasColumnType("smallint");
  87. b.Property<short>("StartPosition_2")
  88. .HasColumnType("smallint");
  89. b.Property<int>("TaskID_1")
  90. .HasColumnType("int");
  91. b.Property<int>("TaskID_2")
  92. .HasColumnType("int");
  93. b.Property<short>("TaskType_1")
  94. .HasColumnType("smallint");
  95. b.Property<short>("TaskType_2")
  96. .HasColumnType("smallint");
  97. b.Property<short>("Trigger_1")
  98. .HasColumnType("smallint");
  99. b.Property<short>("Trigger_2")
  100. .HasColumnType("smallint");
  101. b.Property<DateTime>("UPDATETIME")
  102. .HasColumnType("datetime2");
  103. b.Property<string>("UPDATEUSER")
  104. .IsRequired()
  105. .HasMaxLength(50)
  106. .HasColumnType("nvarchar(50)");
  107. b.Property<byte[]>("VER")
  108. .IsConcurrencyToken()
  109. .ValueGeneratedOnAddOrUpdate()
  110. .HasColumnType("rowversion");
  111. b.Property<int>("WCSVERSION")
  112. .HasColumnType("int");
  113. b.HasKey("ID");
  114. b.HasIndex("DEVICECODE");
  115. b.ToTable("WCS_RGV520");
  116. });
  117. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV521", b =>
  118. {
  119. b.Property<int>("ID")
  120. .ValueGeneratedOnAdd()
  121. .HasColumnType("int")
  122. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  123. b.Property<short>("ACT_V")
  124. .HasColumnType("smallint");
  125. b.Property<string>("DEVICECODE")
  126. .HasColumnType("nvarchar(50)");
  127. b.Property<short>("DestPosition_1")
  128. .HasColumnType("smallint");
  129. b.Property<short>("DestPosition_2")
  130. .HasColumnType("smallint");
  131. b.Property<bool>("ENABLED")
  132. .HasColumnType("bit");
  133. b.Property<DateTime>("FRAME")
  134. .HasColumnType("datetime2");
  135. b.Property<bool>("Finish_1")
  136. .HasColumnType("bit");
  137. b.Property<bool>("Finish_2")
  138. .HasColumnType("bit");
  139. b.Property<bool>("ISLAST")
  140. .HasColumnType("bit");
  141. b.Property<float>("Mileage")
  142. .HasColumnType("real");
  143. b.Property<bool>("PH_Status_1")
  144. .HasColumnType("bit");
  145. b.Property<bool>("PH_Status_2")
  146. .HasColumnType("bit");
  147. b.Property<short>("PRIORITY_1")
  148. .HasColumnType("smallint");
  149. b.Property<short>("PRIORITY_2")
  150. .HasColumnType("smallint");
  151. b.Property<float>("Position")
  152. .HasColumnType("real");
  153. b.Property<short>("RES")
  154. .HasColumnType("smallint");
  155. b.Property<short>("RES1_2")
  156. .HasColumnType("smallint");
  157. b.Property<short>("RES2_1")
  158. .HasColumnType("smallint");
  159. b.Property<short>("RES2_2")
  160. .HasColumnType("smallint");
  161. b.Property<float>("Runtime")
  162. .HasColumnType("real");
  163. b.Property<short>("StartPosition_1")
  164. .HasColumnType("smallint");
  165. b.Property<short>("StartPosition_2")
  166. .HasColumnType("smallint");
  167. b.Property<short>("SystemStatus")
  168. .HasColumnType("smallint");
  169. b.Property<int>("TaskID_1")
  170. .HasColumnType("int");
  171. b.Property<int>("TaskID_2")
  172. .HasColumnType("int");
  173. b.Property<short>("TaskType_1")
  174. .HasColumnType("smallint");
  175. b.Property<short>("TaskType_2")
  176. .HasColumnType("smallint");
  177. b.Property<bool>("ToSition_1")
  178. .HasColumnType("bit");
  179. b.Property<bool>("ToSition_2")
  180. .HasColumnType("bit");
  181. b.Property<DateTime>("UPDATETIME")
  182. .HasColumnType("datetime2");
  183. b.Property<string>("UPDATEUSER")
  184. .IsRequired()
  185. .HasMaxLength(50)
  186. .HasColumnType("nvarchar(50)");
  187. b.Property<byte[]>("VER")
  188. .IsConcurrencyToken()
  189. .ValueGeneratedOnAddOrUpdate()
  190. .HasColumnType("rowversion");
  191. b.Property<int>("WCSVERSION")
  192. .HasColumnType("int");
  193. b.Property<short>("WorkMode")
  194. .HasColumnType("smallint");
  195. b.HasKey("ID");
  196. b.HasIndex("DEVICECODE");
  197. b.ToTable("WCS_RGV521");
  198. });
  199. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV523", b =>
  200. {
  201. b.Property<int>("ID")
  202. .ValueGeneratedOnAdd()
  203. .HasColumnType("int")
  204. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  205. b.Property<string>("DEVICECODE")
  206. .HasColumnType("nvarchar(50)");
  207. b.Property<bool>("ENABLED")
  208. .HasColumnType("bit");
  209. b.Property<DateTime>("FRAME")
  210. .HasColumnType("datetime2");
  211. b.Property<int>("Fault")
  212. .HasColumnType("int");
  213. b.Property<int>("Fault1")
  214. .HasColumnType("int");
  215. b.Property<int>("Fault2")
  216. .HasColumnType("int");
  217. b.Property<bool>("ISLAST")
  218. .HasColumnType("bit");
  219. b.Property<int>("Status")
  220. .HasColumnType("int");
  221. b.Property<int>("Status1")
  222. .HasColumnType("int");
  223. b.Property<int>("Status2")
  224. .HasColumnType("int");
  225. b.Property<DateTime>("UPDATETIME")
  226. .HasColumnType("datetime2");
  227. b.Property<string>("UPDATEUSER")
  228. .IsRequired()
  229. .HasMaxLength(50)
  230. .HasColumnType("nvarchar(50)");
  231. b.Property<byte[]>("VER")
  232. .IsConcurrencyToken()
  233. .ValueGeneratedOnAddOrUpdate()
  234. .HasColumnType("rowversion");
  235. b.Property<int>("WCSVERSION")
  236. .HasColumnType("int");
  237. b.HasKey("ID");
  238. b.HasIndex("DEVICECODE");
  239. b.ToTable("WCS_RGV523");
  240. });
  241. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC520", b =>
  242. {
  243. b.Property<int>("ID")
  244. .ValueGeneratedOnAdd()
  245. .HasColumnType("int")
  246. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  247. b.Property<string>("DEVICECODE")
  248. .HasColumnType("nvarchar(50)");
  249. b.Property<short>("ECol")
  250. .HasColumnType("smallint");
  251. b.Property<short>("EDepth")
  252. .HasColumnType("smallint");
  253. b.Property<short>("ELayer")
  254. .HasColumnType("smallint");
  255. b.Property<short>("ELine")
  256. .HasColumnType("smallint");
  257. b.Property<bool>("ENABLED")
  258. .HasColumnType("bit");
  259. b.Property<short>("Endnumber2")
  260. .HasColumnType("smallint");
  261. b.Property<DateTime>("FRAME")
  262. .HasColumnType("datetime2");
  263. b.Property<short>("GoodsType")
  264. .HasColumnType("smallint");
  265. b.Property<short>("Handshake")
  266. .HasColumnType("smallint");
  267. b.Property<bool>("ISLAST")
  268. .HasColumnType("bit");
  269. b.Property<short>("SCol")
  270. .HasColumnType("smallint");
  271. b.Property<short>("SDepth")
  272. .HasColumnType("smallint");
  273. b.Property<short>("SLayer")
  274. .HasColumnType("smallint");
  275. b.Property<short>("SLine")
  276. .HasColumnType("smallint");
  277. b.Property<short>("SpeedMode")
  278. .HasColumnType("smallint");
  279. b.Property<short>("Startnumber1")
  280. .HasColumnType("smallint");
  281. b.Property<int>("TaskID")
  282. .HasColumnType("int");
  283. b.Property<short>("Trigger")
  284. .HasColumnType("smallint");
  285. b.Property<DateTime>("UPDATETIME")
  286. .HasColumnType("datetime2");
  287. b.Property<string>("UPDATEUSER")
  288. .IsRequired()
  289. .HasMaxLength(50)
  290. .HasColumnType("nvarchar(50)");
  291. b.Property<byte[]>("VER")
  292. .IsConcurrencyToken()
  293. .ValueGeneratedOnAddOrUpdate()
  294. .HasColumnType("rowversion");
  295. b.Property<int>("WCSVERSION")
  296. .HasColumnType("int");
  297. b.HasKey("ID");
  298. b.HasIndex("DEVICECODE");
  299. b.ToTable("WCS_SC520");
  300. });
  301. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC521", b =>
  302. {
  303. b.Property<int>("ID")
  304. .ValueGeneratedOnAdd()
  305. .HasColumnType("int")
  306. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  307. b.Property<bool>("Alarm")
  308. .HasColumnType("bit");
  309. b.Property<short>("Col")
  310. .HasColumnType("smallint");
  311. b.Property<string>("DEVICECODE")
  312. .HasColumnType("nvarchar(50)");
  313. b.Property<short>("ECol")
  314. .HasColumnType("smallint");
  315. b.Property<short>("EDepth")
  316. .HasColumnType("smallint");
  317. b.Property<short>("ELayer")
  318. .HasColumnType("smallint");
  319. b.Property<short>("ELine")
  320. .HasColumnType("smallint");
  321. b.Property<bool>("ENABLED")
  322. .HasColumnType("bit");
  323. b.Property<short>("Endnumber2")
  324. .HasColumnType("smallint");
  325. b.Property<DateTime>("FRAME")
  326. .HasColumnType("datetime2");
  327. b.Property<int>("FinishedTask")
  328. .HasColumnType("int");
  329. b.Property<bool>("ForkCenter")
  330. .HasColumnType("bit");
  331. b.Property<int>("ForkPos")
  332. .HasColumnType("int");
  333. b.Property<bool>("GetFinishi")
  334. .HasColumnType("bit");
  335. b.Property<short>("GoodsType")
  336. .HasColumnType("smallint");
  337. b.Property<bool>("Handshake")
  338. .HasColumnType("bit");
  339. b.Property<bool>("ISLAST")
  340. .HasColumnType("bit");
  341. b.Property<short>("Layer")
  342. .HasColumnType("smallint");
  343. b.Property<int>("LiftPos")
  344. .HasColumnType("int");
  345. b.Property<short>("Line")
  346. .HasColumnType("smallint");
  347. b.Property<bool>("Loaded")
  348. .HasColumnType("bit");
  349. b.Property<short>("Mode")
  350. .HasColumnType("smallint");
  351. b.Property<bool>("PutFinishi")
  352. .HasColumnType("bit");
  353. b.Property<byte>("RES")
  354. .HasColumnType("tinyint");
  355. b.Property<float>("Runtime")
  356. .HasColumnType("real");
  357. b.Property<short>("SCol")
  358. .HasColumnType("smallint");
  359. b.Property<short>("SDepth")
  360. .HasColumnType("smallint");
  361. b.Property<short>("SLayer")
  362. .HasColumnType("smallint");
  363. b.Property<short>("SLine")
  364. .HasColumnType("smallint");
  365. b.Property<short>("Startnumber1")
  366. .HasColumnType("smallint");
  367. b.Property<short>("Status")
  368. .HasColumnType("smallint");
  369. b.Property<bool>("TaskFinishi")
  370. .HasColumnType("bit");
  371. b.Property<int>("TaskID")
  372. .HasColumnType("int");
  373. b.Property<float>("TotalKM")
  374. .HasColumnType("real");
  375. b.Property<int>("TravelPos")
  376. .HasColumnType("int");
  377. b.Property<short>("Trigger")
  378. .HasColumnType("smallint");
  379. b.Property<DateTime>("UPDATETIME")
  380. .HasColumnType("datetime2");
  381. b.Property<string>("UPDATEUSER")
  382. .IsRequired()
  383. .HasMaxLength(50)
  384. .HasColumnType("nvarchar(50)");
  385. b.Property<byte[]>("VER")
  386. .IsConcurrencyToken()
  387. .ValueGeneratedOnAddOrUpdate()
  388. .HasColumnType("rowversion");
  389. b.Property<int>("WCSVERSION")
  390. .HasColumnType("int");
  391. b.HasKey("ID");
  392. b.HasIndex("DEVICECODE");
  393. b.ToTable("WCS_SC521");
  394. });
  395. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC537", b =>
  396. {
  397. b.Property<int>("ID")
  398. .ValueGeneratedOnAdd()
  399. .HasColumnType("int")
  400. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  401. b.Property<string>("DEVICECODE")
  402. .HasColumnType("nvarchar(50)");
  403. b.Property<bool>("ENABLED")
  404. .HasColumnType("bit");
  405. b.Property<DateTime>("FRAME")
  406. .HasColumnType("datetime2");
  407. b.Property<bool>("ISLAST")
  408. .HasColumnType("bit");
  409. b.Property<decimal>("SCAlarm")
  410. .HasColumnType("decimal(20,0)");
  411. b.Property<DateTime>("UPDATETIME")
  412. .HasColumnType("datetime2");
  413. b.Property<string>("UPDATEUSER")
  414. .IsRequired()
  415. .HasMaxLength(50)
  416. .HasColumnType("nvarchar(50)");
  417. b.Property<byte[]>("VER")
  418. .IsConcurrencyToken()
  419. .ValueGeneratedOnAddOrUpdate()
  420. .HasColumnType("rowversion");
  421. b.Property<int>("WCSVERSION")
  422. .HasColumnType("int");
  423. b.HasKey("ID");
  424. b.HasIndex("DEVICECODE");
  425. b.ToTable("WCS_SC537");
  426. });
  427. modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION520", b =>
  428. {
  429. b.Property<int>("ID")
  430. .ValueGeneratedOnAdd()
  431. .HasColumnType("int")
  432. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  433. b.Property<short>("CONFIRM")
  434. .HasColumnType("smallint");
  435. b.Property<string>("DEVICECODE")
  436. .HasColumnType("nvarchar(50)");
  437. b.Property<bool>("ENABLED")
  438. .HasColumnType("bit");
  439. b.Property<short>("FLAGS")
  440. .HasColumnType("smallint");
  441. b.Property<DateTime>("FRAME")
  442. .HasColumnType("datetime2");
  443. b.Property<short>("GOODSCODE")
  444. .HasColumnType("smallint");
  445. b.Property<short>("GOODSEND")
  446. .HasColumnType("smallint");
  447. b.Property<short>("GOODSSIZE")
  448. .HasColumnType("smallint");
  449. b.Property<short>("GOODSSTART")
  450. .HasColumnType("smallint");
  451. b.Property<short>("GOODSTYPE")
  452. .HasColumnType("smallint");
  453. b.Property<bool>("ISLAST")
  454. .HasColumnType("bit");
  455. b.Property<int>("TASKNUM")
  456. .HasColumnType("int");
  457. b.Property<DateTime>("UPDATETIME")
  458. .HasColumnType("datetime2");
  459. b.Property<string>("UPDATEUSER")
  460. .IsRequired()
  461. .HasMaxLength(50)
  462. .HasColumnType("nvarchar(50)");
  463. b.Property<byte[]>("VER")
  464. .IsConcurrencyToken()
  465. .ValueGeneratedOnAddOrUpdate()
  466. .HasColumnType("rowversion");
  467. b.Property<int>("WCSVERSION")
  468. .HasColumnType("int");
  469. b.Property<short>("WEIGHT")
  470. .HasColumnType("smallint");
  471. b.HasKey("ID");
  472. b.HasIndex("DEVICECODE");
  473. b.ToTable("WCS_STATION520");
  474. });
  475. modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION521", b =>
  476. {
  477. b.Property<int>("ID")
  478. .ValueGeneratedOnAdd()
  479. .HasColumnType("int")
  480. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  481. b.Property<bool>("BCR_NOREAD")
  482. .HasColumnType("bit");
  483. b.Property<bool>("B_OUTSIDE")
  484. .HasColumnType("bit");
  485. b.Property<string>("DEVICECODE")
  486. .HasColumnType("nvarchar(50)");
  487. b.Property<bool>("ENABLED")
  488. .HasColumnType("bit");
  489. b.Property<DateTime>("FRAME")
  490. .HasColumnType("datetime2");
  491. b.Property<bool>("F_OUTSIDE")
  492. .HasColumnType("bit");
  493. b.Property<short>("GOODSCODE")
  494. .HasColumnType("smallint");
  495. b.Property<short>("GOODSEND")
  496. .HasColumnType("smallint");
  497. b.Property<short>("GOODSSIZE")
  498. .HasColumnType("smallint");
  499. b.Property<short>("GOODSSTART")
  500. .HasColumnType("smallint");
  501. b.Property<short>("GOODSTYPE")
  502. .HasColumnType("smallint");
  503. b.Property<bool>("GOODS_ERR")
  504. .HasColumnType("bit");
  505. b.Property<bool>("H_OUTSIDE")
  506. .HasColumnType("bit");
  507. b.Property<bool>("ISLAST")
  508. .HasColumnType("bit");
  509. b.Property<bool>("L_OUTSIDE")
  510. .HasColumnType("bit");
  511. b.Property<bool>("OVERLOAD")
  512. .HasColumnType("bit");
  513. b.Property<bool>("PH_STATUS")
  514. .HasColumnType("bit");
  515. b.Property<bool>("REQUEST")
  516. .HasColumnType("bit");
  517. b.Property<bool>("RES")
  518. .HasColumnType("bit");
  519. b.Property<bool>("RES1")
  520. .HasColumnType("bit");
  521. b.Property<bool>("RES2")
  522. .HasColumnType("bit");
  523. b.Property<bool>("RES3")
  524. .HasColumnType("bit");
  525. b.Property<bool>("RES4")
  526. .HasColumnType("bit");
  527. b.Property<bool>("RES5")
  528. .HasColumnType("bit");
  529. b.Property<bool>("R_OUTSIDE")
  530. .HasColumnType("bit");
  531. b.Property<int>("TASKNUM")
  532. .HasColumnType("int");
  533. b.Property<DateTime>("UPDATETIME")
  534. .HasColumnType("datetime2");
  535. b.Property<string>("UPDATEUSER")
  536. .IsRequired()
  537. .HasMaxLength(50)
  538. .HasColumnType("nvarchar(50)");
  539. b.Property<byte[]>("VER")
  540. .IsConcurrencyToken()
  541. .ValueGeneratedOnAddOrUpdate()
  542. .HasColumnType("rowversion");
  543. b.Property<int>("WCSVERSION")
  544. .HasColumnType("int");
  545. b.Property<int>("WEIGHT")
  546. .HasColumnType("int");
  547. b.HasKey("ID");
  548. b.HasIndex("DEVICECODE");
  549. b.ToTable("WCS_STATION521");
  550. });
  551. modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION523", b =>
  552. {
  553. b.Property<int>("ID")
  554. .ValueGeneratedOnAdd()
  555. .HasColumnType("int")
  556. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  557. b.Property<string>("DEVICECODE")
  558. .HasColumnType("nvarchar(50)");
  559. b.Property<bool>("ENABLED")
  560. .HasColumnType("bit");
  561. b.Property<DateTime>("FRAME")
  562. .HasColumnType("datetime2");
  563. b.Property<int>("Fault")
  564. .HasColumnType("INT");
  565. b.Property<bool>("ISLAST")
  566. .HasColumnType("bit");
  567. b.Property<short>("RES")
  568. .HasColumnType("smallint");
  569. b.Property<float>("RunTime")
  570. .HasColumnType("real");
  571. b.Property<short>("Status")
  572. .HasColumnType("smallint");
  573. b.Property<DateTime>("UPDATETIME")
  574. .HasColumnType("datetime2");
  575. b.Property<string>("UPDATEUSER")
  576. .IsRequired()
  577. .HasMaxLength(50)
  578. .HasColumnType("nvarchar(50)");
  579. b.Property<byte[]>("VER")
  580. .IsConcurrencyToken()
  581. .ValueGeneratedOnAddOrUpdate()
  582. .HasColumnType("rowversion");
  583. b.Property<int>("WCSVERSION")
  584. .HasColumnType("int");
  585. b.HasKey("ID");
  586. b.HasIndex("DEVICECODE");
  587. b.ToTable("WCS_STATION523");
  588. });
  589. modelBuilder.Entity("WCS.Entity.WCS_CMD", b =>
  590. {
  591. b.Property<int>("ID")
  592. .ValueGeneratedOnAdd()
  593. .HasColumnType("int")
  594. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  595. b.Property<string>("DEVICE_CODE")
  596. .HasMaxLength(20)
  597. .HasColumnType("nvarchar(20)");
  598. b.Property<bool>("ENABLED")
  599. .HasColumnType("bit");
  600. b.Property<string>("PROPERTY")
  601. .HasMaxLength(32)
  602. .HasColumnType("nvarchar(32)");
  603. b.Property<string>("PROTOCOL")
  604. .HasMaxLength(256)
  605. .HasColumnType("nvarchar(256)");
  606. b.Property<DateTime>("UPDATETIME")
  607. .HasColumnType("datetime2");
  608. b.Property<string>("UPDATEUSER")
  609. .IsRequired()
  610. .HasMaxLength(50)
  611. .HasColumnType("nvarchar(50)");
  612. b.Property<string>("VALUE")
  613. .HasMaxLength(512)
  614. .HasColumnType("nvarchar(512)");
  615. b.Property<byte[]>("VER")
  616. .IsConcurrencyToken()
  617. .ValueGeneratedOnAddOrUpdate()
  618. .HasColumnType("rowversion");
  619. b.Property<int>("WCSVERSION")
  620. .HasColumnType("int");
  621. b.HasKey("ID");
  622. b.ToTable("WCS_CMD");
  623. });
  624. modelBuilder.Entity("WCS.Entity.WCS_DATABLOCK", b =>
  625. {
  626. b.Property<string>("CODE")
  627. .HasMaxLength(20)
  628. .HasColumnType("nvarchar(20)");
  629. b.Property<int>("DATALENGTH")
  630. .HasColumnType("int");
  631. b.Property<bool>("ENABLED")
  632. .HasColumnType("bit");
  633. b.Property<int>("LENGTH")
  634. .HasColumnType("int");
  635. b.Property<string>("NAME")
  636. .HasMaxLength(20)
  637. .HasColumnType("nvarchar(20)");
  638. b.Property<int>("NO")
  639. .HasColumnType("int");
  640. b.Property<bool>("NOUPDATE")
  641. .HasColumnType("bit");
  642. b.Property<string>("PLCCODE")
  643. .HasColumnType("nvarchar(20)");
  644. b.Property<string>("PROTOCOL")
  645. .IsRequired()
  646. .HasMaxLength(200)
  647. .HasColumnType("nvarchar(200)");
  648. b.Property<DateTime>("UPDATETIME")
  649. .HasColumnType("datetime2");
  650. b.Property<string>("UPDATEUSER")
  651. .IsRequired()
  652. .HasMaxLength(50)
  653. .HasColumnType("nvarchar(50)");
  654. b.Property<byte[]>("VER")
  655. .IsConcurrencyToken()
  656. .ValueGeneratedOnAddOrUpdate()
  657. .HasColumnType("rowversion");
  658. b.HasKey("CODE");
  659. b.HasIndex("PLCCODE");
  660. b.ToTable("WCS_DATABLOCK");
  661. });
  662. modelBuilder.Entity("WCS.Entity.WCS_DEVICE", b =>
  663. {
  664. b.Property<string>("CODE")
  665. .HasMaxLength(50)
  666. .HasColumnType("nvarchar(50)");
  667. b.Property<bool>("ENABLED")
  668. .HasColumnType("bit");
  669. b.Property<string>("NAME")
  670. .IsRequired()
  671. .HasMaxLength(50)
  672. .HasColumnType("nvarchar(50)");
  673. b.Property<string>("TYPE")
  674. .IsRequired()
  675. .HasMaxLength(100)
  676. .HasColumnType("nvarchar(100)");
  677. b.Property<DateTime>("UPDATETIME")
  678. .HasColumnType("datetime2");
  679. b.Property<string>("UPDATEUSER")
  680. .IsRequired()
  681. .HasMaxLength(50)
  682. .HasColumnType("nvarchar(50)");
  683. b.Property<byte[]>("VER")
  684. .IsConcurrencyToken()
  685. .ValueGeneratedOnAddOrUpdate()
  686. .HasColumnType("rowversion");
  687. b.HasKey("CODE");
  688. b.ToTable("WCS_DEVICE");
  689. });
  690. modelBuilder.Entity("WCS.Entity.WCS_DEVICEPROTOCOL", b =>
  691. {
  692. b.Property<int>("ID")
  693. .ValueGeneratedOnAdd()
  694. .HasColumnType("int")
  695. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  696. b.Property<string>("DBCODE")
  697. .HasColumnType("nvarchar(20)");
  698. b.Property<string>("DEVICECODE")
  699. .IsRequired()
  700. .HasColumnType("nvarchar(50)");
  701. b.Property<bool>("ENABLED")
  702. .HasColumnType("bit");
  703. b.Property<short>("POSITION")
  704. .HasColumnType("smallint");
  705. b.Property<DateTime>("UPDATETIME")
  706. .HasColumnType("datetime2");
  707. b.Property<string>("UPDATEUSER")
  708. .IsRequired()
  709. .HasMaxLength(50)
  710. .HasColumnType("nvarchar(50)");
  711. b.Property<byte[]>("VER")
  712. .IsConcurrencyToken()
  713. .ValueGeneratedOnAddOrUpdate()
  714. .HasColumnType("rowversion");
  715. b.HasKey("ID");
  716. b.HasIndex("DBCODE");
  717. b.HasIndex("DEVICECODE");
  718. b.ToTable("WCS_DEVICEPROTOCOL");
  719. });
  720. modelBuilder.Entity("WCS.Entity.WCS_EXCEPTION", b =>
  721. {
  722. b.Property<int>("ID")
  723. .ValueGeneratedOnAdd()
  724. .HasColumnType("int")
  725. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  726. b.Property<bool>("ENABLED")
  727. .HasColumnType("bit");
  728. b.Property<string>("MSG")
  729. .HasMaxLength(1000)
  730. .HasColumnType("nvarchar(1000)");
  731. b.Property<DateTime>("STARTTIME")
  732. .HasColumnType("datetime2");
  733. b.Property<int>("TIMES")
  734. .HasColumnType("int");
  735. b.Property<DateTime>("UPDATETIME")
  736. .HasColumnType("datetime2");
  737. b.Property<string>("UPDATEUSER")
  738. .IsRequired()
  739. .HasMaxLength(50)
  740. .HasColumnType("nvarchar(50)");
  741. b.Property<byte[]>("VER")
  742. .IsConcurrencyToken()
  743. .ValueGeneratedOnAddOrUpdate()
  744. .HasColumnType("rowversion");
  745. b.HasKey("ID");
  746. b.ToTable("WCS_EXCEPTION");
  747. });
  748. modelBuilder.Entity("WCS.Entity.WCS_PLC", b =>
  749. {
  750. b.Property<string>("CODE")
  751. .HasMaxLength(20)
  752. .HasColumnType("nvarchar(20)");
  753. b.Property<bool>("ENABLED")
  754. .HasColumnType("bit");
  755. b.Property<string>("IP")
  756. .HasMaxLength(20)
  757. .HasColumnType("nvarchar(20)");
  758. b.Property<string>("MODEL")
  759. .HasMaxLength(10)
  760. .HasColumnType("nvarchar(10)");
  761. b.Property<string>("NAME")
  762. .HasMaxLength(20)
  763. .HasColumnType("nvarchar(20)");
  764. b.Property<int>("PORT")
  765. .HasColumnType("int");
  766. b.Property<int>("RACK")
  767. .HasColumnType("int");
  768. b.Property<int>("SLOT")
  769. .HasColumnType("int");
  770. b.Property<int>("TYPE")
  771. .HasColumnType("int");
  772. b.Property<DateTime>("UPDATETIME")
  773. .HasColumnType("datetime2");
  774. b.Property<string>("UPDATEUSER")
  775. .IsRequired()
  776. .HasMaxLength(50)
  777. .HasColumnType("nvarchar(50)");
  778. b.Property<byte[]>("VER")
  779. .IsConcurrencyToken()
  780. .ValueGeneratedOnAddOrUpdate()
  781. .HasColumnType("rowversion");
  782. b.HasKey("CODE");
  783. b.ToTable("WCS_PLC");
  784. });
  785. modelBuilder.Entity("WCS.Entity.Protocol.WCS_BCR80", b =>
  786. {
  787. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  788. .WithMany()
  789. .HasForeignKey("DEVICECODE");
  790. b.Navigation("DEVICE");
  791. });
  792. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV520", b =>
  793. {
  794. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  795. .WithMany()
  796. .HasForeignKey("DEVICECODE");
  797. b.Navigation("DEVICE");
  798. });
  799. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV521", b =>
  800. {
  801. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  802. .WithMany()
  803. .HasForeignKey("DEVICECODE");
  804. b.Navigation("DEVICE");
  805. });
  806. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV523", b =>
  807. {
  808. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  809. .WithMany()
  810. .HasForeignKey("DEVICECODE");
  811. b.Navigation("DEVICE");
  812. });
  813. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC520", b =>
  814. {
  815. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  816. .WithMany()
  817. .HasForeignKey("DEVICECODE");
  818. b.Navigation("DEVICE");
  819. });
  820. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC521", b =>
  821. {
  822. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  823. .WithMany()
  824. .HasForeignKey("DEVICECODE");
  825. b.Navigation("DEVICE");
  826. });
  827. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC537", b =>
  828. {
  829. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  830. .WithMany()
  831. .HasForeignKey("DEVICECODE");
  832. b.Navigation("DEVICE");
  833. });
  834. modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION520", b =>
  835. {
  836. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  837. .WithMany()
  838. .HasForeignKey("DEVICECODE");
  839. b.Navigation("DEVICE");
  840. });
  841. modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION521", b =>
  842. {
  843. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  844. .WithMany()
  845. .HasForeignKey("DEVICECODE");
  846. b.Navigation("DEVICE");
  847. });
  848. modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION523", b =>
  849. {
  850. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  851. .WithMany()
  852. .HasForeignKey("DEVICECODE");
  853. b.Navigation("DEVICE");
  854. });
  855. modelBuilder.Entity("WCS.Entity.WCS_DATABLOCK", b =>
  856. {
  857. b.HasOne("WCS.Entity.WCS_PLC", "PLC")
  858. .WithMany()
  859. .HasForeignKey("PLCCODE");
  860. b.Navigation("PLC");
  861. });
  862. modelBuilder.Entity("WCS.Entity.WCS_DEVICEPROTOCOL", b =>
  863. {
  864. b.HasOne("WCS.Entity.WCS_DATABLOCK", "DB")
  865. .WithMany()
  866. .HasForeignKey("DBCODE");
  867. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  868. .WithMany("PROTOCOLS")
  869. .HasForeignKey("DEVICECODE")
  870. .OnDelete(DeleteBehavior.Cascade)
  871. .IsRequired();
  872. b.Navigation("DB");
  873. b.Navigation("DEVICE");
  874. });
  875. modelBuilder.Entity("WCS.Entity.WCS_DEVICE", b =>
  876. {
  877. b.Navigation("PROTOCOLS");
  878. });
  879. #pragma warning restore 612, 618
  880. }
  881. }
  882. }