20210705084431_7-5-4.Designer.cs 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232
  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("20210705084431_7-5-4")]
  13. partial class _754
  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<bool>("CONFIRM")
  434. .HasColumnType("bit");
  435. b.Property<string>("DEVICECODE")
  436. .HasColumnType("nvarchar(50)");
  437. b.Property<bool>("ENABLED")
  438. .HasColumnType("bit");
  439. b.Property<DateTime>("FRAME")
  440. .HasColumnType("datetime2");
  441. b.Property<int>("GOODSCODE")
  442. .HasColumnType("int");
  443. b.Property<short>("GOODSEND")
  444. .HasColumnType("smallint");
  445. b.Property<short>("GOODSSIZE")
  446. .HasColumnType("smallint");
  447. b.Property<short>("GOODSSTART")
  448. .HasColumnType("smallint");
  449. b.Property<short>("GOODSTYPE")
  450. .HasColumnType("smallint");
  451. b.Property<bool>("ISLAST")
  452. .HasColumnType("bit");
  453. b.Property<bool>("RES")
  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.HasKey("ID");
  470. b.HasIndex("DEVICECODE");
  471. b.ToTable("WCS_STATION520");
  472. });
  473. modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION521", b =>
  474. {
  475. b.Property<int>("ID")
  476. .ValueGeneratedOnAdd()
  477. .HasColumnType("int")
  478. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  479. b.Property<bool>("BCR_NOREAD")
  480. .HasColumnType("bit");
  481. b.Property<bool>("B_OUTSIDE")
  482. .HasColumnType("bit");
  483. b.Property<string>("DEVICECODE")
  484. .HasColumnType("nvarchar(50)");
  485. b.Property<bool>("ENABLED")
  486. .HasColumnType("bit");
  487. b.Property<DateTime>("FRAME")
  488. .HasColumnType("datetime2");
  489. b.Property<bool>("F_OUTSIDE")
  490. .HasColumnType("bit");
  491. b.Property<int>("GOODSCODE")
  492. .HasColumnType("int");
  493. b.Property<short>("GOODSEND")
  494. .HasColumnType("smallint");
  495. b.Property<short>("GOODSSIZE")
  496. .HasColumnType("smallint");
  497. b.Property<short>("GOODSSTART")
  498. .HasColumnType("smallint");
  499. b.Property<short>("GOODSTYPE")
  500. .HasColumnType("smallint");
  501. b.Property<bool>("GOODS_ERR")
  502. .HasColumnType("bit");
  503. b.Property<bool>("H_OUTSIDE")
  504. .HasColumnType("bit");
  505. b.Property<bool>("ISLAST")
  506. .HasColumnType("bit");
  507. b.Property<bool>("L_OUTSIDE")
  508. .HasColumnType("bit");
  509. b.Property<bool>("OVERLOAD")
  510. .HasColumnType("bit");
  511. b.Property<bool>("PH_STATUS")
  512. .HasColumnType("bit");
  513. b.Property<bool>("REQUEST")
  514. .HasColumnType("bit");
  515. b.Property<bool>("RES")
  516. .HasColumnType("bit");
  517. b.Property<bool>("RES1")
  518. .HasColumnType("bit");
  519. b.Property<bool>("RES2")
  520. .HasColumnType("bit");
  521. b.Property<bool>("RES3")
  522. .HasColumnType("bit");
  523. b.Property<bool>("RES4")
  524. .HasColumnType("bit");
  525. b.Property<bool>("RES5")
  526. .HasColumnType("bit");
  527. b.Property<bool>("R_OUTSIDE")
  528. .HasColumnType("bit");
  529. b.Property<int>("TASKNUM")
  530. .HasColumnType("int");
  531. b.Property<DateTime>("UPDATETIME")
  532. .HasColumnType("datetime2");
  533. b.Property<string>("UPDATEUSER")
  534. .IsRequired()
  535. .HasMaxLength(50)
  536. .HasColumnType("nvarchar(50)");
  537. b.Property<byte[]>("VER")
  538. .IsConcurrencyToken()
  539. .ValueGeneratedOnAddOrUpdate()
  540. .HasColumnType("rowversion");
  541. b.Property<int>("WCSVERSION")
  542. .HasColumnType("int");
  543. b.Property<int>("WEIGHT")
  544. .HasColumnType("int");
  545. b.HasKey("ID");
  546. b.HasIndex("DEVICECODE");
  547. b.ToTable("WCS_STATION521");
  548. });
  549. modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION523", b =>
  550. {
  551. b.Property<int>("ID")
  552. .ValueGeneratedOnAdd()
  553. .HasColumnType("int")
  554. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  555. b.Property<string>("DEVICECODE")
  556. .HasColumnType("nvarchar(50)");
  557. b.Property<bool>("ENABLED")
  558. .HasColumnType("bit");
  559. b.Property<DateTime>("FRAME")
  560. .HasColumnType("datetime2");
  561. b.Property<int>("Fault")
  562. .HasColumnType("int");
  563. b.Property<bool>("ISLAST")
  564. .HasColumnType("bit");
  565. b.Property<short>("RES")
  566. .HasColumnType("smallint");
  567. b.Property<float>("RunTime")
  568. .HasColumnType("real");
  569. b.Property<short>("Status")
  570. .HasColumnType("smallint");
  571. b.Property<DateTime>("UPDATETIME")
  572. .HasColumnType("datetime2");
  573. b.Property<string>("UPDATEUSER")
  574. .IsRequired()
  575. .HasMaxLength(50)
  576. .HasColumnType("nvarchar(50)");
  577. b.Property<byte[]>("VER")
  578. .IsConcurrencyToken()
  579. .ValueGeneratedOnAddOrUpdate()
  580. .HasColumnType("rowversion");
  581. b.Property<int>("WCSVERSION")
  582. .HasColumnType("int");
  583. b.HasKey("ID");
  584. b.HasIndex("DEVICECODE");
  585. b.ToTable("WCS_STATION523");
  586. });
  587. modelBuilder.Entity("WCS.Entity.WCS_CMD", b =>
  588. {
  589. b.Property<int>("ID")
  590. .ValueGeneratedOnAdd()
  591. .HasColumnType("int")
  592. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  593. b.Property<string>("DEVICE_CODE")
  594. .HasMaxLength(20)
  595. .HasColumnType("nvarchar(20)");
  596. b.Property<bool>("ENABLED")
  597. .HasColumnType("bit");
  598. b.Property<string>("PROPERTY")
  599. .HasMaxLength(32)
  600. .HasColumnType("nvarchar(32)");
  601. b.Property<string>("PROTOCOL")
  602. .HasMaxLength(256)
  603. .HasColumnType("nvarchar(256)");
  604. b.Property<DateTime>("UPDATETIME")
  605. .HasColumnType("datetime2");
  606. b.Property<string>("UPDATEUSER")
  607. .IsRequired()
  608. .HasMaxLength(50)
  609. .HasColumnType("nvarchar(50)");
  610. b.Property<string>("VALUE")
  611. .HasMaxLength(512)
  612. .HasColumnType("nvarchar(512)");
  613. b.Property<byte[]>("VER")
  614. .IsConcurrencyToken()
  615. .ValueGeneratedOnAddOrUpdate()
  616. .HasColumnType("rowversion");
  617. b.Property<int>("WCSVERSION")
  618. .HasColumnType("int");
  619. b.HasKey("ID");
  620. b.ToTable("WCS_CMD");
  621. });
  622. modelBuilder.Entity("WCS.Entity.WCS_DATABLOCK", b =>
  623. {
  624. b.Property<string>("CODE")
  625. .HasMaxLength(20)
  626. .HasColumnType("nvarchar(20)");
  627. b.Property<int>("DATALENGTH")
  628. .HasColumnType("int");
  629. b.Property<bool>("ENABLED")
  630. .HasColumnType("bit");
  631. b.Property<int>("LENGTH")
  632. .HasColumnType("int");
  633. b.Property<string>("NAME")
  634. .HasMaxLength(20)
  635. .HasColumnType("nvarchar(20)");
  636. b.Property<int>("NO")
  637. .HasColumnType("int");
  638. b.Property<bool>("NOUPDATE")
  639. .HasColumnType("bit");
  640. b.Property<string>("PLCCODE")
  641. .HasColumnType("nvarchar(20)");
  642. b.Property<string>("PROTOCOL")
  643. .IsRequired()
  644. .HasMaxLength(200)
  645. .HasColumnType("nvarchar(200)");
  646. b.Property<DateTime>("UPDATETIME")
  647. .HasColumnType("datetime2");
  648. b.Property<string>("UPDATEUSER")
  649. .IsRequired()
  650. .HasMaxLength(50)
  651. .HasColumnType("nvarchar(50)");
  652. b.Property<byte[]>("VER")
  653. .IsConcurrencyToken()
  654. .ValueGeneratedOnAddOrUpdate()
  655. .HasColumnType("rowversion");
  656. b.HasKey("CODE");
  657. b.HasIndex("PLCCODE");
  658. b.ToTable("WCS_DATABLOCK");
  659. });
  660. modelBuilder.Entity("WCS.Entity.WCS_DEVICE", b =>
  661. {
  662. b.Property<string>("CODE")
  663. .HasMaxLength(50)
  664. .HasColumnType("nvarchar(50)");
  665. b.Property<bool>("ENABLED")
  666. .HasColumnType("bit");
  667. b.Property<string>("NAME")
  668. .IsRequired()
  669. .HasMaxLength(50)
  670. .HasColumnType("nvarchar(50)");
  671. b.Property<string>("TYPE")
  672. .IsRequired()
  673. .HasMaxLength(100)
  674. .HasColumnType("nvarchar(100)");
  675. b.Property<DateTime>("UPDATETIME")
  676. .HasColumnType("datetime2");
  677. b.Property<string>("UPDATEUSER")
  678. .IsRequired()
  679. .HasMaxLength(50)
  680. .HasColumnType("nvarchar(50)");
  681. b.Property<byte[]>("VER")
  682. .IsConcurrencyToken()
  683. .ValueGeneratedOnAddOrUpdate()
  684. .HasColumnType("rowversion");
  685. b.HasKey("CODE");
  686. b.ToTable("WCS_DEVICE");
  687. });
  688. modelBuilder.Entity("WCS.Entity.WCS_DEVICEPROTOCOL", b =>
  689. {
  690. b.Property<int>("ID")
  691. .ValueGeneratedOnAdd()
  692. .HasColumnType("int")
  693. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  694. b.Property<string>("DBCODE")
  695. .HasColumnType("nvarchar(20)");
  696. b.Property<string>("DEVICECODE")
  697. .IsRequired()
  698. .HasColumnType("nvarchar(50)");
  699. b.Property<bool>("ENABLED")
  700. .HasColumnType("bit");
  701. b.Property<short>("POSITION")
  702. .HasColumnType("smallint");
  703. b.Property<DateTime>("UPDATETIME")
  704. .HasColumnType("datetime2");
  705. b.Property<string>("UPDATEUSER")
  706. .IsRequired()
  707. .HasMaxLength(50)
  708. .HasColumnType("nvarchar(50)");
  709. b.Property<byte[]>("VER")
  710. .IsConcurrencyToken()
  711. .ValueGeneratedOnAddOrUpdate()
  712. .HasColumnType("rowversion");
  713. b.HasKey("ID");
  714. b.HasIndex("DBCODE");
  715. b.HasIndex("DEVICECODE");
  716. b.ToTable("WCS_DEVICEPROTOCOL");
  717. });
  718. modelBuilder.Entity("WCS.Entity.WCS_EXCEPTION", b =>
  719. {
  720. b.Property<int>("ID")
  721. .ValueGeneratedOnAdd()
  722. .HasColumnType("int")
  723. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  724. b.Property<bool>("ENABLED")
  725. .HasColumnType("bit");
  726. b.Property<string>("MSG")
  727. .HasMaxLength(1000)
  728. .HasColumnType("nvarchar(1000)");
  729. b.Property<DateTime>("STARTTIME")
  730. .HasColumnType("datetime2");
  731. b.Property<int>("TIMES")
  732. .HasColumnType("int");
  733. b.Property<DateTime>("UPDATETIME")
  734. .HasColumnType("datetime2");
  735. b.Property<string>("UPDATEUSER")
  736. .IsRequired()
  737. .HasMaxLength(50)
  738. .HasColumnType("nvarchar(50)");
  739. b.Property<byte[]>("VER")
  740. .IsConcurrencyToken()
  741. .ValueGeneratedOnAddOrUpdate()
  742. .HasColumnType("rowversion");
  743. b.HasKey("ID");
  744. b.ToTable("WCS_EXCEPTION");
  745. });
  746. modelBuilder.Entity("WCS.Entity.WCS_PLC", b =>
  747. {
  748. b.Property<string>("CODE")
  749. .HasMaxLength(20)
  750. .HasColumnType("nvarchar(20)");
  751. b.Property<bool>("ENABLED")
  752. .HasColumnType("bit");
  753. b.Property<string>("IP")
  754. .HasMaxLength(20)
  755. .HasColumnType("nvarchar(20)");
  756. b.Property<string>("MODEL")
  757. .HasMaxLength(10)
  758. .HasColumnType("nvarchar(10)");
  759. b.Property<string>("NAME")
  760. .HasMaxLength(20)
  761. .HasColumnType("nvarchar(20)");
  762. b.Property<int>("PORT")
  763. .HasColumnType("int");
  764. b.Property<int>("RACK")
  765. .HasColumnType("int");
  766. b.Property<int>("SLOT")
  767. .HasColumnType("int");
  768. b.Property<int>("TYPE")
  769. .HasColumnType("int");
  770. b.Property<DateTime>("UPDATETIME")
  771. .HasColumnType("datetime2");
  772. b.Property<string>("UPDATEUSER")
  773. .IsRequired()
  774. .HasMaxLength(50)
  775. .HasColumnType("nvarchar(50)");
  776. b.Property<byte[]>("VER")
  777. .IsConcurrencyToken()
  778. .ValueGeneratedOnAddOrUpdate()
  779. .HasColumnType("rowversion");
  780. b.HasKey("CODE");
  781. b.ToTable("WCS_PLC");
  782. });
  783. modelBuilder.Entity("WCS.Entity.Protocol.WCS_BCR80", b =>
  784. {
  785. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  786. .WithMany()
  787. .HasForeignKey("DEVICECODE");
  788. b.Navigation("DEVICE");
  789. });
  790. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV520", b =>
  791. {
  792. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  793. .WithMany()
  794. .HasForeignKey("DEVICECODE");
  795. b.Navigation("DEVICE");
  796. });
  797. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV521", b =>
  798. {
  799. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  800. .WithMany()
  801. .HasForeignKey("DEVICECODE");
  802. b.Navigation("DEVICE");
  803. });
  804. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV523", b =>
  805. {
  806. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  807. .WithMany()
  808. .HasForeignKey("DEVICECODE");
  809. b.Navigation("DEVICE");
  810. });
  811. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC520", b =>
  812. {
  813. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  814. .WithMany()
  815. .HasForeignKey("DEVICECODE");
  816. b.Navigation("DEVICE");
  817. });
  818. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC521", b =>
  819. {
  820. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  821. .WithMany()
  822. .HasForeignKey("DEVICECODE");
  823. b.Navigation("DEVICE");
  824. });
  825. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC537", b =>
  826. {
  827. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  828. .WithMany()
  829. .HasForeignKey("DEVICECODE");
  830. b.Navigation("DEVICE");
  831. });
  832. modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION520", b =>
  833. {
  834. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  835. .WithMany()
  836. .HasForeignKey("DEVICECODE");
  837. b.Navigation("DEVICE");
  838. });
  839. modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION521", b =>
  840. {
  841. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  842. .WithMany()
  843. .HasForeignKey("DEVICECODE");
  844. b.Navigation("DEVICE");
  845. });
  846. modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION523", b =>
  847. {
  848. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  849. .WithMany()
  850. .HasForeignKey("DEVICECODE");
  851. b.Navigation("DEVICE");
  852. });
  853. modelBuilder.Entity("WCS.Entity.WCS_DATABLOCK", b =>
  854. {
  855. b.HasOne("WCS.Entity.WCS_PLC", "PLC")
  856. .WithMany()
  857. .HasForeignKey("PLCCODE");
  858. b.Navigation("PLC");
  859. });
  860. modelBuilder.Entity("WCS.Entity.WCS_DEVICEPROTOCOL", b =>
  861. {
  862. b.HasOne("WCS.Entity.WCS_DATABLOCK", "DB")
  863. .WithMany()
  864. .HasForeignKey("DBCODE");
  865. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  866. .WithMany("PROTOCOLS")
  867. .HasForeignKey("DEVICECODE")
  868. .OnDelete(DeleteBehavior.Cascade)
  869. .IsRequired();
  870. b.Navigation("DB");
  871. b.Navigation("DEVICE");
  872. });
  873. modelBuilder.Entity("WCS.Entity.WCS_DEVICE", b =>
  874. {
  875. b.Navigation("PROTOCOLS");
  876. });
  877. #pragma warning restore 612, 618
  878. }
  879. }
  880. }