-
Notifications
You must be signed in to change notification settings - Fork 1
/
AppLog.txt
11678 lines (11665 loc) · 597 KB
/
AppLog.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (348ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE') SELECT 1 ELSE SELECT 0
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (2ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT CASE
WHEN EXISTS (
SELECT 1
FROM [Specialities] AS [s])
THEN CAST(1 AS BIT) ELSE CAST(0 AS BIT)
END
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.SignInController.Index (Polyclinic) with arguments ((null)) - ModelState is Valid
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (13ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [d].[Id], [d].[ChainedCabinet], [d].[Lastname], [d].[Name], [d].[RegionId], [d].[SpecialityId], [d].[Surname]
FROM [Doctors] AS [d]
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor
Executing ViewResult, running view at path /Views/SignIn/Index.cshtml.
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.SignInController.Index (Polyclinic) in 2972.0548ms
Microsoft.AspNetCore.Session.DistributedSession
Session started; Key:e1bc5d5c-31f7-1459-543b-cf9f8f923152, Id:4653b9f7-2a07-ebcd-9c44-30693b9fb77e
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 3232.028ms 200 text/html; charset=utf-8
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/Registrator
Polyclinic.Controllers.RegistratorController
CREATED!
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.RegistratorController.Index (Polyclinic) with arguments ((null)) - ModelState is Valid
Microsoft.AspNetCore.Mvc.RedirectToActionResult
Executing RedirectResult, redirecting to /Registrator/Patients.
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.RegistratorController.Index (Polyclinic) in 19.7658ms
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 36.6202ms 302
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/Registrator/Patients
Polyclinic.Controllers.RegistratorController
CREATED!
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.RegistratorController.Patients (Polyclinic) with arguments (, , , , ) - ModelState is Valid
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (3ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [r].[Id]
FROM [Regions] AS [r]
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor
Executing ViewResult, running view at path /Views/Registrator/Patients.cshtml.
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [Patient].[Id], [Patient].[BirthDate], [Patient].[CreationDate], [Patient].[HouseNumber], [Patient].[Lastname], [Patient].[Name], [Patient].[RegionId], [Patient].[Sex], [Patient].[StreetName], [Patient].[Surname]
FROM [Patients] AS [Patient]
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.RegistratorController.Patients (Polyclinic) in 687.91ms
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 710.8307ms 200 text/html; charset=utf-8
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (294ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE') SELECT 1 ELSE SELECT 0
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (34ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT CASE
WHEN EXISTS (
SELECT 1
FROM [Specialities] AS [s])
THEN CAST(1 AS BIT) ELSE CAST(0 AS BIT)
END
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.SignInController.Index (Polyclinic) with arguments ((null)) - ModelState is Valid
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (25ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [d].[Id], [d].[ChainedCabinet], [d].[Lastname], [d].[Name], [d].[RegionId], [d].[SpecialityId], [d].[Surname]
FROM [Doctors] AS [d]
Information
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor
Executing ViewResult, running view at path /Views/SignIn/Index.cshtml.
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.SignInController.Index (Polyclinic) in 2807.1885ms
Information
Microsoft.AspNetCore.Session.DistributedSession
Session started; Key:997fc2f1-6823-32ac-1a3c-1c9c5d6793e7, Id:cc637e5a-2e9c-5902-5e8a-74cc75fc17b9
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 3017.4588ms 200 text/html; charset=utf-8
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/Registrator
Information
Polyclinic.Controllers.RegistratorController
CREATED!
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.RegistratorController.Index (Polyclinic) with arguments ((null)) - ModelState is Valid
Information
Microsoft.AspNetCore.Mvc.RedirectToActionResult
Executing RedirectResult, redirecting to /Registrator/Patients.
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.RegistratorController.Index (Polyclinic) in 15.0885ms
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 30.2657ms 302
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/Registrator/Patients
Information
Polyclinic.Controllers.RegistratorController
CREATED!
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.RegistratorController.Patients (Polyclinic) with arguments (, , , , ) - ModelState is Valid
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (20ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [r].[Id]
FROM [Regions] AS [r]
Information
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor
Executing ViewResult, running view at path /Views/Registrator/Patients.cshtml.
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [Patient].[Id], [Patient].[BirthDate], [Patient].[CreationDate], [Patient].[HouseNumber], [Patient].[Lastname], [Patient].[Name], [Patient].[RegionId], [Patient].[Sex], [Patient].[StreetName], [Patient].[Surname]
FROM [Patients] AS [Patient]
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.RegistratorController.Patients (Polyclinic) in 734.1348ms
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 756.392ms 200 text/html; charset=utf-8
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/Registrator/Doctors
Information
Polyclinic.Controllers.RegistratorController
CREATED!
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.RegistratorController.Doctors (Polyclinic) with arguments (, , , ) - ModelState is Valid
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [s].[Id], [s].[CheckUpTime], [s].[Name]
FROM [Specialities] AS [s]
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [r].[Id]
FROM [Regions] AS [r]
Information
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor
Executing ViewResult, running view at path /Views/Registrator/Doctors.cshtml.
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [m].[Id], [m].[ChainedCabinet], [m].[Lastname], [m].[Name], [m].[RegionId], [m].[SpecialityId], [m].[Surname]
FROM [Doctors] AS [m]
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.RegistratorController.Doctors (Polyclinic) in 270.0057ms
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 284.5359ms 200 text/html; charset=utf-8
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/Registrator/Patients
Information
Polyclinic.Controllers.RegistratorController
CREATED!
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.RegistratorController.Patients (Polyclinic) with arguments (, , , , ) - ModelState is Valid
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [r].[Id]
FROM [Regions] AS [r]
Information
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor
Executing ViewResult, running view at path /Views/Registrator/Patients.cshtml.
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [Patient].[Id], [Patient].[BirthDate], [Patient].[CreationDate], [Patient].[HouseNumber], [Patient].[Lastname], [Patient].[Name], [Patient].[RegionId], [Patient].[Sex], [Patient].[StreetName], [Patient].[Surname]
FROM [Patients] AS [Patient]
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.RegistratorController.Patients (Polyclinic) in 31.896ms
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 51.985ms 200 text/html; charset=utf-8
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/Registrator/Regions
Information
Polyclinic.Controllers.RegistratorController
CREATED!
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.RegistratorController.Regions (Polyclinic) with arguments () - ModelState is Valid
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [x].[Id]
FROM [Regions] AS [x]
ORDER BY [x].[Id]
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (22ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [x.Streets].[Id], [x.Streets].[Addresses], [x.Streets].[Name], [x.Streets].[RegionId]
FROM [Streets] AS [x.Streets]
INNER JOIN (
SELECT [x0].[Id]
FROM [Regions] AS [x0]
) AS [t] ON [x.Streets].[RegionId] = [t].[Id]
ORDER BY [t].[Id]
Information
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor
Executing ViewResult, running view at path /Views/Registrator/Regions.cshtml.
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.RegistratorController.Regions (Polyclinic) in 268.6444ms
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 289.2972ms 200 text/html; charset=utf-8
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/Registrator/Specialities
Information
Polyclinic.Controllers.RegistratorController
CREATED!
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.RegistratorController.Specialities (Polyclinic) with arguments () - ModelState is Valid
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [s].[Id], [s].[CheckUpTime], [s].[Name]
FROM [Specialities] AS [s]
Information
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor
Executing ViewResult, running view at path /Views/Registrator/Specialities.cshtml.
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.RegistratorController.Specialities (Polyclinic) in 262.3137ms
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 279.7442ms 200 text/html; charset=utf-8
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/js/Registrator/Specialities/main.js?v=o-nxi8nz91FdSYRllWwhge1yjORMjgltEWWpF3MNxTw
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/css/Registrator/Specialities/main.css?v=oo4BzFaQ9Kc1HpLG_ZjMsQJgbki_O3vC6QnL2KSfgns
Information
Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware
The file /js/Registrator/Specialities/main.js was not modified
Information
Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware
The file /css/Registrator/Specialities/main.css was not modified
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 59.1804ms 304 application/javascript
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 59.1801ms 304 text/css
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/Registrator/DrugsDirectory
Information
Polyclinic.Controllers.RegistratorController
CREATED!
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.RegistratorController.DrugsDirectory (Polyclinic) with arguments () - ModelState is Valid
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [d].[Id], [d].[Description], [d].[Name]
FROM [Drugs] AS [d]
Information
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor
Executing ViewResult, running view at path /Views/Shared/DrugsDirectory.cshtml.
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.RegistratorController.DrugsDirectory (Polyclinic) in 297.9111ms
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 311.4363ms 200 text/html; charset=utf-8
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/css/Shared/DrugsDirectory/main.css?v=5hqK0naeyf2f6MTwfVmZ5H2a8fhByicczcbUQKrF1sY
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/js/Shared/DrugsDirectory/main.js?v=UbPwqG6UraDcNTlrpeGB7NzsUr--hMtqHzu4uWuNWCQ
Information
Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware
The file /js/Shared/DrugsDirectory/main.js was not modified
Information
Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware
The file /css/Shared/DrugsDirectory/main.css was not modified
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 17.2332ms 304 application/javascript
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 21.8496ms 304 text/css
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (469ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE') SELECT 1 ELSE SELECT 0
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (40ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT CASE
WHEN EXISTS (
SELECT 1
FROM [Specialities] AS [s])
THEN CAST(1 AS BIT) ELSE CAST(0 AS BIT)
END
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.SignInController.Index (Polyclinic) with arguments ((null)) - ModelState is Valid
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (7ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [d].[Id], [d].[ChainedCabinet], [d].[Lastname], [d].[Name], [d].[RegionId], [d].[SpecialityId], [d].[Surname]
FROM [Doctors] AS [d]
Information
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor
Executing ViewResult, running view at path /Views/SignIn/Index.cshtml.
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.SignInController.Index (Polyclinic) in 2812.082ms
Information
Microsoft.AspNetCore.Session.DistributedSession
Session started; Key:1ac4a211-34b2-5006-d19e-2a89dd4873c6, Id:8997a05b-7370-f950-b2d5-f57be24bb8bd
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 3013.1472ms 200 text/html; charset=utf-8
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/Registrator
Information
Polyclinic.Controllers.RegistratorController
CREATED!
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.RegistratorController.Index (Polyclinic) with arguments ((null)) - ModelState is Valid
Information
Microsoft.AspNetCore.Mvc.RedirectToActionResult
Executing RedirectResult, redirecting to /Registrator/Patients.
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.RegistratorController.Index (Polyclinic) in 14.1528ms
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 27.3097ms 302
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/Registrator/Patients
Information
Polyclinic.Controllers.RegistratorController
CREATED!
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.RegistratorController.Patients (Polyclinic) with arguments (, , , , ) - ModelState is Valid
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (3ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [r].[Id]
FROM [Regions] AS [r]
Information
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor
Executing ViewResult, running view at path /Views/Registrator/Patients.cshtml.
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [Patient].[Id], [Patient].[BirthDate], [Patient].[CreationDate], [Patient].[HouseNumber], [Patient].[Lastname], [Patient].[Name], [Patient].[RegionId], [Patient].[Sex], [Patient].[StreetName], [Patient].[Surname]
FROM [Patients] AS [Patient]
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.RegistratorController.Patients (Polyclinic) in 695.5015ms
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 731.5956ms 200 text/html; charset=utf-8
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (330ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE') SELECT 1 ELSE SELECT 0
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (42ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT CASE
WHEN EXISTS (
SELECT 1
FROM [Specialities] AS [s])
THEN CAST(1 AS BIT) ELSE CAST(0 AS BIT)
END
Error
Polyclinic.Program
An error occurred while seeding the database.
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.SignInController.Index (Polyclinic) with arguments ((null)) - ModelState is Valid
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (7ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [d].[Id], [d].[ChainedCabinet], [d].[Lastname], [d].[Name], [d].[RegionId], [d].[SpecialityId], [d].[Surname]
FROM [Doctors] AS [d]
Information
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor
Executing ViewResult, running view at path /Views/SignIn/Index.cshtml.
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.SignInController.Index (Polyclinic) in 2916.3063ms
Information
Microsoft.AspNetCore.Session.DistributedSession
Session started; Key:a989f22e-23e7-90a6-63c4-fb2de8df5bfa, Id:c2acdfe7-26ef-43ac-ac64-3147430d0404
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 3120.6015ms 200 text/html; charset=utf-8
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (137ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE') SELECT 1 ELSE SELECT 0
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (35ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT CASE
WHEN EXISTS (
SELECT 1
FROM [Specialities] AS [s])
THEN CAST(1 AS BIT) ELSE CAST(0 AS BIT)
END
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.SignInController.Index (Polyclinic) with arguments ((null)) - ModelState is Valid
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (7ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [d].[Id], [d].[ChainedCabinet], [d].[Lastname], [d].[Name], [d].[RegionId], [d].[SpecialityId], [d].[Surname]
FROM [Doctors] AS [d]
Information
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor
Executing ViewResult, running view at path /Views/SignIn/Index.cshtml.
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.SignInController.Index (Polyclinic) in 2779.2337ms
Information
Microsoft.AspNetCore.Session.DistributedSession
Session started; Key:93776f5d-1478-d578-c6ae-0b5fe8183e90, Id:8c0c5461-14f2-cb81-ad96-0647fbf36d2a
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 2985.6742ms 200 text/html; charset=utf-8
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/Registrator
Information
Polyclinic.Controllers.RegistratorController
CREATED!
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.RegistratorController.Index (Polyclinic) with arguments ((null)) - ModelState is Valid
Information
Microsoft.AspNetCore.Mvc.RedirectToActionResult
Executing RedirectResult, redirecting to /Registrator/Patients.
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.RegistratorController.Index (Polyclinic) in 19.8571ms
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 33.806ms 302
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/Registrator/Patients
Information
Polyclinic.Controllers.RegistratorController
CREATED!
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.RegistratorController.Patients (Polyclinic) with arguments (, , , , ) - ModelState is Valid
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (29ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [r].[Id]
FROM [Regions] AS [r]
Information
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor
Executing ViewResult, running view at path /Views/Registrator/Patients.cshtml.
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (3ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [Patient].[Id], [Patient].[BirthDate], [Patient].[CreationDate], [Patient].[HouseNumber], [Patient].[Lastname], [Patient].[Name], [Patient].[RegionId], [Patient].[Sex], [Patient].[StreetName], [Patient].[Surname]
FROM [Patients] AS [Patient]
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.RegistratorController.Patients (Polyclinic) in 682.8265ms
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 708.1364ms 200 text/html; charset=utf-8
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/Registrator/Patients
Information
Polyclinic.Controllers.RegistratorController
CREATED!
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.RegistratorController.Patients (Polyclinic) with arguments (, , , , ) - ModelState is Valid
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [r].[Id]
FROM [Regions] AS [r]
Information
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor
Executing ViewResult, running view at path /Views/Registrator/Patients.cshtml.
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [Patient].[Id], [Patient].[BirthDate], [Patient].[CreationDate], [Patient].[HouseNumber], [Patient].[Lastname], [Patient].[Name], [Patient].[RegionId], [Patient].[Sex], [Patient].[StreetName], [Patient].[Surname]
FROM [Patients] AS [Patient]
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.RegistratorController.Patients (Polyclinic) in 29.3796ms
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 49.9815ms 200 text/html; charset=utf-8
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/Registrator/Doctors
Information
Polyclinic.Controllers.RegistratorController
CREATED!
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.RegistratorController.Doctors (Polyclinic) with arguments (, , , ) - ModelState is Valid
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [s].[Id], [s].[CheckUpTime], [s].[Name]
FROM [Specialities] AS [s]
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [r].[Id]
FROM [Regions] AS [r]
Information
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor
Executing ViewResult, running view at path /Views/Registrator/Doctors.cshtml.
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [m].[Id], [m].[ChainedCabinet], [m].[Lastname], [m].[Name], [m].[RegionId], [m].[SpecialityId], [m].[Surname]
FROM [Doctors] AS [m]
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.RegistratorController.Doctors (Polyclinic) in 281.4826ms
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 294.3557ms 200 text/html; charset=utf-8
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (59ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE') SELECT 1 ELSE SELECT 0
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (2ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT CASE
WHEN EXISTS (
SELECT 1
FROM [Specialities] AS [s])
THEN CAST(1 AS BIT) ELSE CAST(0 AS BIT)
END
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.SignInController.Index (Polyclinic) with arguments ((null)) - ModelState is Valid
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (7ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [d].[Id], [d].[ChainedCabinet], [d].[Lastname], [d].[Name], [d].[RegionId], [d].[SpecialityId], [d].[Surname]
FROM [Doctors] AS [d]
Information
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor
Executing ViewResult, running view at path /Views/SignIn/Index.cshtml.
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.SignInController.Index (Polyclinic) in 2786.2318ms
Information
Microsoft.AspNetCore.Session.DistributedSession
Session started; Key:469082ec-1ab5-f5df-d00a-88dffaa33857, Id:d66e1c27-a147-ad29-bf6a-750266521fd2
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 2993.122ms 200 text/html; charset=utf-8
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (305ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE') SELECT 1 ELSE SELECT 0
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (2ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT CASE
WHEN EXISTS (
SELECT 1
FROM [Specialities] AS [s])
THEN CAST(1 AS BIT) ELSE CAST(0 AS BIT)
END
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request starting HTTP/1.1 GET http://localhost:49214/
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executing action method Polyclinic.Controllers.SignInController.Index (Polyclinic) with arguments ((null)) - ModelState is Valid
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (7ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [d].[Id], [d].[ChainedCabinet], [d].[Lastname], [d].[Name], [d].[RegionId], [d].[SpecialityId], [d].[Surname]
FROM [Doctors] AS [d]
Information
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor
Executing ViewResult, running view at path /Views/SignIn/Index.cshtml.
Information
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker
Executed action Polyclinic.Controllers.SignInController.Index (Polyclinic) in 2794.2567ms
Information
Microsoft.AspNetCore.Session.DistributedSession
Session started; Key:5e486ef0-3c95-e21c-c430-fedc80a1a259, Id:8746fdf3-238e-1c0c-8fe1-3f2091f95258
Information
Microsoft.AspNetCore.Hosting.Internal.WebHost
Request finished in 3003.3285ms 200 text/html; charset=utf-8
Information
Microsoft.EntityFrameworkCore.Infrastructure
Entity Framework Core 2.0.0-rtm-26452 initialized 'PolyclinicContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (330ms) [Parameters=[], CommandType='Text', CommandTimeout='60']
CREATE DATABASE [Polyclinic];
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (502ms) [Parameters=[], CommandType='Text', CommandTimeout='60']
IF SERVERPROPERTY('EngineEdition') <> 5 EXEC(N'ALTER DATABASE [Polyclinic] SET READ_COMMITTED_SNAPSHOT ON;');
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (23ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE [Diseases] (
[Id] int NOT NULL IDENTITY,
[Description] nvarchar(max) NOT NULL,
[Name] nvarchar(max) NOT NULL,
CONSTRAINT [PK_Diseases] PRIMARY KEY ([Id])
);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (2ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE [Drugs] (
[Id] int NOT NULL IDENTITY,
[Description] nvarchar(max) NOT NULL,
[Name] nvarchar(max) NOT NULL,
CONSTRAINT [PK_Drugs] PRIMARY KEY ([Id])
);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE [Regions] (
[Id] int NOT NULL IDENTITY,
CONSTRAINT [PK_Regions] PRIMARY KEY ([Id])
);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE [RelieveTimes] (
[Id] int NOT NULL IDENTITY,
[Description] nvarchar(max) NULL,
[EndTime] datetime2 NOT NULL,
[StartTime] datetime2 NOT NULL,
CONSTRAINT [PK_RelieveTimes] PRIMARY KEY ([Id])
);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE [Specialities] (
[Id] int NOT NULL IDENTITY,
[CheckUpTime] int NOT NULL,
[Name] nvarchar(max) NOT NULL,
CONSTRAINT [PK_Specialities] PRIMARY KEY ([Id])
);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE [Patients] (
[Id] int NOT NULL IDENTITY,
[BirthDate] datetime2 NOT NULL,
[CreationDate] datetime2 NOT NULL,
[HouseNumber] nvarchar(max) NOT NULL,
[Lastname] nvarchar(max) NOT NULL,
[Name] nvarchar(max) NOT NULL,
[RegionId] int NULL,
[Sex] bit NOT NULL,
[StreetName] nvarchar(max) NOT NULL,
[Surname] nvarchar(max) NOT NULL,
CONSTRAINT [PK_Patients] PRIMARY KEY ([Id]),
CONSTRAINT [FK_Patients_Regions_RegionId] FOREIGN KEY ([RegionId]) REFERENCES [Regions] ([Id]) ON DELETE SET NULL
);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE [Streets] (
[Id] int NOT NULL IDENTITY,
[Addresses] nvarchar(max) NOT NULL,
[Name] nvarchar(max) NOT NULL,
[RegionId] int NOT NULL,
CONSTRAINT [PK_Streets] PRIMARY KEY ([Id]),
CONSTRAINT [FK_Streets_Regions_RegionId] FOREIGN KEY ([RegionId]) REFERENCES [Regions] ([Id]) ON DELETE CASCADE
);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (2ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE [Doctors] (
[Id] int NOT NULL IDENTITY,
[ChainedCabinet] int NOT NULL,
[Lastname] nvarchar(max) NOT NULL,
[Name] nvarchar(max) NOT NULL,
[RegionId] int NULL,
[SpecialityId] int NULL,
[Surname] nvarchar(max) NOT NULL,
CONSTRAINT [PK_Doctors] PRIMARY KEY ([Id]),
CONSTRAINT [FK_Doctors_Regions_RegionId] FOREIGN KEY ([RegionId]) REFERENCES [Regions] ([Id]) ON DELETE SET NULL,
CONSTRAINT [FK_Doctors_Specialities_SpecialityId] FOREIGN KEY ([SpecialityId]) REFERENCES [Specialities] ([Id]) ON DELETE SET NULL
);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE [AttendenceStatistics] (
[Id] int NOT NULL IDENTITY,
[Appeared] int NOT NULL,
[Date] datetime2 NOT NULL,
[DoctorId] int NOT NULL,
[NonAppeared] int NOT NULL,
CONSTRAINT [PK_AttendenceStatistics] PRIMARY KEY ([Id]),
CONSTRAINT [FK_AttendenceStatistics_Doctors_DoctorId] FOREIGN KEY ([DoctorId]) REFERENCES [Doctors] ([Id]) ON DELETE CASCADE
);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (2ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE [DoctorVisits] (
[Id] int NOT NULL IDENTITY,
[DateTime] datetime2 NOT NULL,
[Diagnosis] nvarchar(max) NOT NULL,
[DoctorId] int NOT NULL,
[Medicines] nvarchar(max) NOT NULL,
[PatientId] int NOT NULL,
CONSTRAINT [PK_DoctorVisits] PRIMARY KEY ([Id]),
CONSTRAINT [FK_DoctorVisits_Doctors_DoctorId] FOREIGN KEY ([DoctorId]) REFERENCES [Doctors] ([Id]) ON DELETE CASCADE,
CONSTRAINT [FK_DoctorVisits_Patients_PatientId] FOREIGN KEY ([PatientId]) REFERENCES [Patients] ([Id]) ON DELETE CASCADE
);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE [PatientRecords] (
[Id] int NOT NULL IDENTITY,
[DateTime] datetime2 NOT NULL,
[DoctorId] int NOT NULL,
[PatientId] int NULL,
CONSTRAINT [PK_PatientRecords] PRIMARY KEY ([Id]),
CONSTRAINT [FK_PatientRecords_Doctors_DoctorId] FOREIGN KEY ([DoctorId]) REFERENCES [Doctors] ([Id]) ON DELETE CASCADE,
CONSTRAINT [FK_PatientRecords_Patients_PatientId] FOREIGN KEY ([PatientId]) REFERENCES [Patients] ([Id]) ON DELETE CASCADE
);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE [Relieves] (
[Id] int NOT NULL IDENTITY,
[Date] datetime2 NOT NULL,
[DoctorId] int NOT NULL,
[EndTime] datetime2 NOT NULL,
[StartTime] datetime2 NOT NULL,
CONSTRAINT [PK_Relieves] PRIMARY KEY ([Id]),
CONSTRAINT [FK_Relieves_Doctors_DoctorId] FOREIGN KEY ([DoctorId]) REFERENCES [Doctors] ([Id]) ON DELETE CASCADE
);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX [IX_AttendenceStatistics_DoctorId] ON [AttendenceStatistics] ([DoctorId]);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX [IX_Doctors_RegionId] ON [Doctors] ([RegionId]);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX [IX_Doctors_SpecialityId] ON [Doctors] ([SpecialityId]);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX [IX_DoctorVisits_DoctorId] ON [DoctorVisits] ([DoctorId]);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX [IX_DoctorVisits_PatientId] ON [DoctorVisits] ([PatientId]);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX [IX_PatientRecords_DoctorId] ON [PatientRecords] ([DoctorId]);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX [IX_PatientRecords_PatientId] ON [PatientRecords] ([PatientId]);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX [IX_Patients_RegionId] ON [Patients] ([RegionId]);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX [IX_Relieves_DoctorId] ON [Relieves] ([DoctorId]);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX [IX_Streets_RegionId] ON [Streets] ([RegionId]);
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (2ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT CASE
WHEN EXISTS (
SELECT 1
FROM [Specialities] AS [s])
THEN CAST(1 AS BIT) ELSE CAST(0 AS BIT)
END
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT CASE
WHEN EXISTS (
SELECT 1
FROM [Drugs] AS [d])
THEN CAST(1 AS BIT) ELSE CAST(0 AS BIT)
END
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT CASE
WHEN EXISTS (
SELECT 1
FROM [Diseases] AS [d])
THEN CAST(1 AS BIT) ELSE CAST(0 AS BIT)
END
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT CASE
WHEN EXISTS (
SELECT 1
FROM [Regions] AS [r])
THEN CAST(1 AS BIT) ELSE CAST(0 AS BIT)
END
Information
Microsoft.EntityFrameworkCore.Database.Command
Executed DbCommand (67ms) [Parameters=[@p0='?' (Size = 4000), @p1='?' (Size = 4000), @p2='?' (Size = 4000), @p3='?' (Size = 4000), @p4='?' (Size = 4000), @p5='?' (Size = 4000), @p6='?' (Size = 4000), @p7='?' (Size = 4000), @p8='?', @p9='?' (Size = 4000), @p10='?', @p11='?' (Size = 4000)], CommandType='Text', CommandTimeout='30']
SET NOCOUNT ON;
DECLARE @inserted0 TABLE ([Id] int, [_Position] [int]);
MERGE [Diseases] USING (
VALUES (@p0, @p1, 0),
(@p2, @p3, 1)) AS i ([Description], [Name], _Position) ON 1=0
WHEN NOT MATCHED THEN
INSERT ([Description], [Name])
VALUES (i.[Description], i.[Name])
OUTPUT INSERTED.[Id], i._Position
INTO @inserted0;
SELECT [t].[Id] FROM [Diseases] t
INNER JOIN @inserted0 i ON ([t].[Id] = [i].[Id])
ORDER BY [i].[_Position];
DECLARE @inserted2 TABLE ([Id] int, [_Position] [int]);
MERGE [Drugs] USING (
VALUES (@p4, @p5, 0),
(@p6, @p7, 1)) AS i ([Description], [Name], _Position) ON 1=0
WHEN NOT MATCHED THEN
INSERT ([Description], [Name])
VALUES (i.[Description], i.[Name])
OUTPUT INSERTED.[Id], i._Position
INTO @inserted2;
SELECT [t].[Id] FROM [Drugs] t
INNER JOIN @inserted2 i ON ([t].[Id] = [i].[Id])
ORDER BY [i].[_Position];
INSERT INTO [Regions]
DEFAULT VALUES;
SELECT [Id]
FROM [Regions]
WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
DECLARE @inserted5 TABLE ([Id] int, [_Position] [int]);
MERGE [Specialities] USING (
VALUES (@p8, @p9, 0),
(@p10, @p11, 1)) AS i ([CheckUpTime], [Name], _Position) ON 1=0
WHEN NOT MATCHED THEN
INSERT ([CheckUpTime], [Name])
VALUES (i.[CheckUpTime], i.[Name])
OUTPUT INSERTED.[Id], i._Position
INTO @inserted5;
SELECT [t].[Id] FROM [Specialities] t
INNER JOIN @inserted5 i ON ([t].[Id] = [i].[Id])