20210708071525_7-8-1.Designer.cs 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230
  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("20210708071525_7-8-1")]
  13. partial class _781
  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>("FinishedACK")
  264. .HasColumnType("smallint");
  265. b.Property<short>("GoodsType")
  266. .HasColumnType("smallint");
  267. b.Property<short>("Handshake")
  268. .HasColumnType("smallint");
  269. b.Property<bool>("ISLAST")
  270. .HasColumnType("bit");
  271. b.Property<short>("SCol")
  272. .HasColumnType("smallint");
  273. b.Property<short>("SDepth")
  274. .HasColumnType("smallint");
  275. b.Property<short>("SLayer")
  276. .HasColumnType("smallint");
  277. b.Property<short>("SLine")
  278. .HasColumnType("smallint");
  279. b.Property<short>("SpeedMode")
  280. .HasColumnType("smallint");
  281. b.Property<short>("Startnumber1")
  282. .HasColumnType("smallint");
  283. b.Property<int>("TaskID")
  284. .HasColumnType("int");
  285. b.Property<short>("Trigger")
  286. .HasColumnType("smallint");
  287. b.Property<DateTime>("UPDATETIME")
  288. .HasColumnType("datetime2");
  289. b.Property<string>("UPDATEUSER")
  290. .IsRequired()
  291. .HasMaxLength(50)
  292. .HasColumnType("nvarchar(50)");
  293. b.Property<byte[]>("VER")
  294. .IsConcurrencyToken()
  295. .ValueGeneratedOnAddOrUpdate()
  296. .HasColumnType("rowversion");
  297. b.Property<int>("WCSVERSION")
  298. .HasColumnType("int");
  299. b.HasKey("ID");
  300. b.HasIndex("DEVICECODE");
  301. b.ToTable("WCS_SC520");
  302. });
  303. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC521", b =>
  304. {
  305. b.Property<int>("ID")
  306. .ValueGeneratedOnAdd()
  307. .HasColumnType("int")
  308. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  309. b.Property<bool>("Alarm")
  310. .HasColumnType("bit");
  311. b.Property<short>("Col")
  312. .HasColumnType("smallint");
  313. b.Property<string>("DEVICECODE")
  314. .HasColumnType("nvarchar(50)");
  315. b.Property<short>("ECol")
  316. .HasColumnType("smallint");
  317. b.Property<short>("EDepth")
  318. .HasColumnType("smallint");
  319. b.Property<short>("ELayer")
  320. .HasColumnType("smallint");
  321. b.Property<short>("ELine")
  322. .HasColumnType("smallint");
  323. b.Property<bool>("ENABLED")
  324. .HasColumnType("bit");
  325. b.Property<short>("Endnumber2")
  326. .HasColumnType("smallint");
  327. b.Property<DateTime>("FRAME")
  328. .HasColumnType("datetime2");
  329. b.Property<int>("FinishedTask")
  330. .HasColumnType("int");
  331. b.Property<bool>("ForkCenter")
  332. .HasColumnType("bit");
  333. b.Property<int>("ForkPos")
  334. .HasColumnType("int");
  335. b.Property<bool>("GetFinishi")
  336. .HasColumnType("bit");
  337. b.Property<short>("GoodsType")
  338. .HasColumnType("smallint");
  339. b.Property<bool>("Handshake")
  340. .HasColumnType("bit");
  341. b.Property<bool>("ISLAST")
  342. .HasColumnType("bit");
  343. b.Property<short>("Layer")
  344. .HasColumnType("smallint");
  345. b.Property<int>("LiftPos")
  346. .HasColumnType("int");
  347. b.Property<short>("Line")
  348. .HasColumnType("smallint");
  349. b.Property<bool>("Loaded")
  350. .HasColumnType("bit");
  351. b.Property<short>("Mode")
  352. .HasColumnType("smallint");
  353. b.Property<bool>("PutFinishi")
  354. .HasColumnType("bit");
  355. b.Property<byte>("RES")
  356. .HasColumnType("tinyint");
  357. b.Property<float>("Runtime")
  358. .HasColumnType("real");
  359. b.Property<short>("SCol")
  360. .HasColumnType("smallint");
  361. b.Property<short>("SDepth")
  362. .HasColumnType("smallint");
  363. b.Property<short>("SLayer")
  364. .HasColumnType("smallint");
  365. b.Property<short>("SLine")
  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<short>("Tunnel")
  380. .HasColumnType("smallint");
  381. b.Property<DateTime>("UPDATETIME")
  382. .HasColumnType("datetime2");
  383. b.Property<string>("UPDATEUSER")
  384. .IsRequired()
  385. .HasMaxLength(50)
  386. .HasColumnType("nvarchar(50)");
  387. b.Property<byte[]>("VER")
  388. .IsConcurrencyToken()
  389. .ValueGeneratedOnAddOrUpdate()
  390. .HasColumnType("rowversion");
  391. b.Property<int>("WCSVERSION")
  392. .HasColumnType("int");
  393. b.HasKey("ID");
  394. b.HasIndex("DEVICECODE");
  395. b.ToTable("WCS_SC521");
  396. });
  397. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC537", b =>
  398. {
  399. b.Property<int>("ID")
  400. .ValueGeneratedOnAdd()
  401. .HasColumnType("int")
  402. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  403. b.Property<string>("DEVICECODE")
  404. .HasColumnType("nvarchar(50)");
  405. b.Property<bool>("ENABLED")
  406. .HasColumnType("bit");
  407. b.Property<DateTime>("FRAME")
  408. .HasColumnType("datetime2");
  409. b.Property<bool>("ISLAST")
  410. .HasColumnType("bit");
  411. b.Property<decimal>("SCAlarm")
  412. .HasColumnType("decimal(20,0)");
  413. b.Property<DateTime>("UPDATETIME")
  414. .HasColumnType("datetime2");
  415. b.Property<string>("UPDATEUSER")
  416. .IsRequired()
  417. .HasMaxLength(50)
  418. .HasColumnType("nvarchar(50)");
  419. b.Property<byte[]>("VER")
  420. .IsConcurrencyToken()
  421. .ValueGeneratedOnAddOrUpdate()
  422. .HasColumnType("rowversion");
  423. b.Property<int>("WCSVERSION")
  424. .HasColumnType("int");
  425. b.HasKey("ID");
  426. b.HasIndex("DEVICECODE");
  427. b.ToTable("WCS_SC537");
  428. });
  429. modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION520", b =>
  430. {
  431. b.Property<int>("ID")
  432. .ValueGeneratedOnAdd()
  433. .HasColumnType("int")
  434. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  435. b.Property<bool>("CONFIRM")
  436. .HasColumnType("bit");
  437. b.Property<string>("DEVICECODE")
  438. .HasColumnType("nvarchar(50)");
  439. b.Property<bool>("ENABLED")
  440. .HasColumnType("bit");
  441. b.Property<DateTime>("FRAME")
  442. .HasColumnType("datetime2");
  443. b.Property<int>("GOODSCODE")
  444. .HasColumnType("int");
  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<bool>("RES")
  456. .HasColumnType("bit");
  457. b.Property<int>("TASKNUM")
  458. .HasColumnType("int");
  459. b.Property<DateTime>("UPDATETIME")
  460. .HasColumnType("datetime2");
  461. b.Property<string>("UPDATEUSER")
  462. .IsRequired()
  463. .HasMaxLength(50)
  464. .HasColumnType("nvarchar(50)");
  465. b.Property<byte[]>("VER")
  466. .IsConcurrencyToken()
  467. .ValueGeneratedOnAddOrUpdate()
  468. .HasColumnType("rowversion");
  469. b.Property<int>("WCSVERSION")
  470. .HasColumnType("int");
  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<int>("GOODSCODE")
  494. .HasColumnType("int");
  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<DateTime>("UPDATETIME")
  674. .HasColumnType("datetime2");
  675. b.Property<string>("UPDATEUSER")
  676. .IsRequired()
  677. .HasMaxLength(50)
  678. .HasColumnType("nvarchar(50)");
  679. b.Property<byte[]>("VER")
  680. .IsConcurrencyToken()
  681. .ValueGeneratedOnAddOrUpdate()
  682. .HasColumnType("rowversion");
  683. b.HasKey("CODE");
  684. b.ToTable("WCS_DEVICE");
  685. });
  686. modelBuilder.Entity("WCS.Entity.WCS_DEVICEPROTOCOL", b =>
  687. {
  688. b.Property<int>("ID")
  689. .ValueGeneratedOnAdd()
  690. .HasColumnType("int")
  691. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  692. b.Property<string>("DBCODE")
  693. .HasColumnType("nvarchar(20)");
  694. b.Property<string>("DEVICECODE")
  695. .IsRequired()
  696. .HasColumnType("nvarchar(50)");
  697. b.Property<bool>("ENABLED")
  698. .HasColumnType("bit");
  699. b.Property<short>("POSITION")
  700. .HasColumnType("smallint");
  701. b.Property<DateTime>("UPDATETIME")
  702. .HasColumnType("datetime2");
  703. b.Property<string>("UPDATEUSER")
  704. .IsRequired()
  705. .HasMaxLength(50)
  706. .HasColumnType("nvarchar(50)");
  707. b.Property<byte[]>("VER")
  708. .IsConcurrencyToken()
  709. .ValueGeneratedOnAddOrUpdate()
  710. .HasColumnType("rowversion");
  711. b.HasKey("ID");
  712. b.HasIndex("DBCODE");
  713. b.HasIndex("DEVICECODE");
  714. b.ToTable("WCS_DEVICEPROTOCOL");
  715. });
  716. modelBuilder.Entity("WCS.Entity.WCS_EXCEPTION", b =>
  717. {
  718. b.Property<int>("ID")
  719. .ValueGeneratedOnAdd()
  720. .HasColumnType("int")
  721. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  722. b.Property<bool>("ENABLED")
  723. .HasColumnType("bit");
  724. b.Property<string>("MSG")
  725. .HasMaxLength(1000)
  726. .HasColumnType("nvarchar(1000)");
  727. b.Property<DateTime>("STARTTIME")
  728. .HasColumnType("datetime2");
  729. b.Property<int>("TIMES")
  730. .HasColumnType("int");
  731. b.Property<DateTime>("UPDATETIME")
  732. .HasColumnType("datetime2");
  733. b.Property<string>("UPDATEUSER")
  734. .IsRequired()
  735. .HasMaxLength(50)
  736. .HasColumnType("nvarchar(50)");
  737. b.Property<byte[]>("VER")
  738. .IsConcurrencyToken()
  739. .ValueGeneratedOnAddOrUpdate()
  740. .HasColumnType("rowversion");
  741. b.HasKey("ID");
  742. b.ToTable("WCS_EXCEPTION");
  743. });
  744. modelBuilder.Entity("WCS.Entity.WCS_PLC", b =>
  745. {
  746. b.Property<string>("CODE")
  747. .HasMaxLength(20)
  748. .HasColumnType("nvarchar(20)");
  749. b.Property<bool>("ENABLED")
  750. .HasColumnType("bit");
  751. b.Property<string>("IP")
  752. .HasMaxLength(20)
  753. .HasColumnType("nvarchar(20)");
  754. b.Property<string>("MODEL")
  755. .HasMaxLength(10)
  756. .HasColumnType("nvarchar(10)");
  757. b.Property<string>("NAME")
  758. .HasMaxLength(20)
  759. .HasColumnType("nvarchar(20)");
  760. b.Property<int>("PORT")
  761. .HasColumnType("int");
  762. b.Property<int>("RACK")
  763. .HasColumnType("int");
  764. b.Property<int>("SLOT")
  765. .HasColumnType("int");
  766. b.Property<int>("TYPE")
  767. .HasColumnType("int");
  768. b.Property<DateTime>("UPDATETIME")
  769. .HasColumnType("datetime2");
  770. b.Property<string>("UPDATEUSER")
  771. .IsRequired()
  772. .HasMaxLength(50)
  773. .HasColumnType("nvarchar(50)");
  774. b.Property<byte[]>("VER")
  775. .IsConcurrencyToken()
  776. .ValueGeneratedOnAddOrUpdate()
  777. .HasColumnType("rowversion");
  778. b.HasKey("CODE");
  779. b.ToTable("WCS_PLC");
  780. });
  781. modelBuilder.Entity("WCS.Entity.Protocol.WCS_BCR80", b =>
  782. {
  783. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  784. .WithMany()
  785. .HasForeignKey("DEVICECODE");
  786. b.Navigation("DEVICE");
  787. });
  788. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV520", b =>
  789. {
  790. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  791. .WithMany()
  792. .HasForeignKey("DEVICECODE");
  793. b.Navigation("DEVICE");
  794. });
  795. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV521", b =>
  796. {
  797. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  798. .WithMany()
  799. .HasForeignKey("DEVICECODE");
  800. b.Navigation("DEVICE");
  801. });
  802. modelBuilder.Entity("WCS.Entity.Protocol.WCS_RGV523", b =>
  803. {
  804. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  805. .WithMany()
  806. .HasForeignKey("DEVICECODE");
  807. b.Navigation("DEVICE");
  808. });
  809. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC520", b =>
  810. {
  811. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  812. .WithMany()
  813. .HasForeignKey("DEVICECODE");
  814. b.Navigation("DEVICE");
  815. });
  816. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC521", b =>
  817. {
  818. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  819. .WithMany()
  820. .HasForeignKey("DEVICECODE");
  821. b.Navigation("DEVICE");
  822. });
  823. modelBuilder.Entity("WCS.Entity.Protocol.WCS_SC537", b =>
  824. {
  825. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  826. .WithMany()
  827. .HasForeignKey("DEVICECODE");
  828. b.Navigation("DEVICE");
  829. });
  830. modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION520", b =>
  831. {
  832. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  833. .WithMany()
  834. .HasForeignKey("DEVICECODE");
  835. b.Navigation("DEVICE");
  836. });
  837. modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION521", b =>
  838. {
  839. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  840. .WithMany()
  841. .HasForeignKey("DEVICECODE");
  842. b.Navigation("DEVICE");
  843. });
  844. modelBuilder.Entity("WCS.Entity.Protocol.WCS_STATION523", b =>
  845. {
  846. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  847. .WithMany()
  848. .HasForeignKey("DEVICECODE");
  849. b.Navigation("DEVICE");
  850. });
  851. modelBuilder.Entity("WCS.Entity.WCS_DATABLOCK", b =>
  852. {
  853. b.HasOne("WCS.Entity.WCS_PLC", "PLC")
  854. .WithMany()
  855. .HasForeignKey("PLCCODE");
  856. b.Navigation("PLC");
  857. });
  858. modelBuilder.Entity("WCS.Entity.WCS_DEVICEPROTOCOL", b =>
  859. {
  860. b.HasOne("WCS.Entity.WCS_DATABLOCK", "DB")
  861. .WithMany()
  862. .HasForeignKey("DBCODE");
  863. b.HasOne("WCS.Entity.WCS_DEVICE", "DEVICE")
  864. .WithMany("PROTOCOLS")
  865. .HasForeignKey("DEVICECODE")
  866. .OnDelete(DeleteBehavior.Cascade)
  867. .IsRequired();
  868. b.Navigation("DB");
  869. b.Navigation("DEVICE");
  870. });
  871. modelBuilder.Entity("WCS.Entity.WCS_DEVICE", b =>
  872. {
  873. b.Navigation("PROTOCOLS");
  874. });
  875. #pragma warning restore 612, 618
  876. }
  877. }
  878. }