You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

webapi-20220623.log 274KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933
  1. [2022-06-23 11:21:49.755 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  2. ][2022-06-23 11:23:28.859 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  3. ][2022-06-23 11:23:28.978 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  4. ][2022-06-23 11:23:29.185 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  5. ][2022-06-23 11:23:30.203 +02:00 INF Executed DbCommand (17ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  6. SELECT 1
  7. ][2022-06-23 11:23:30.226 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  8. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  9. ][2022-06-23 11:23:30.252 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  10. SELECT [MigrationId], [ProductVersion]
  11. FROM [__EFMigrationsHistory]
  12. ORDER BY [MigrationId];
  13. ][2022-06-23 11:23:30.436 +02:00 INF Now listening on: http://localhost:5116
  14. ][2022-06-23 11:23:30.439 +02:00 INF Application started. Press Ctrl+C to shut down.
  15. ][2022-06-23 11:23:30.439 +02:00 INF Hosting environment: Development
  16. ][2022-06-23 11:23:30.439 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
  17. ][2022-06-23 11:23:32.662 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
  18. ][2022-06-23 11:23:32.874 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
  19. ][2022-06-23 11:23:32.874 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
  20. ][2022-06-23 11:23:32.878 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 2.4198ms
  21. ][2022-06-23 11:23:32.883 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 224.2492ms
  22. ][2022-06-23 11:23:32.915 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 41.8259ms
  23. ][2022-06-23 11:23:32.988 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
  24. ][2022-06-23 11:23:33.065 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 77.1119ms
  25. ][2022-06-23 11:23:38.953 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
  26. ][2022-06-23 11:23:38.961 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
  27. ][2022-06-23 11:23:38.974 +02:00 INF Route matched with {action = "GetInsuranceCompanies", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO]]] GetInsuranceCompanies() on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  28. ][2022-06-23 11:23:39.141 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 162.5231ms
  29. ][2022-06-23 11:23:39.142 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
  30. ][2022-06-23 11:23:39.156 +02:00 ERR Error constructing handler for request of type MediatR.IRequestHandler`2[Diligent.WebAPI.Host.Mediator.InsuranceCompanies.Queries.GetInsuranceCompaniesQuery,Diligent.WebAPI.Host.Mediator.Result`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO]]]. Register your handlers with the container. See the samples in GitHub for examples.
  31. ][2022-06-23 11:23:39.161 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - - - 500 - application/json 207.4095ms
  32. ][2022-06-23 11:25:47.397 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  33. ][2022-06-23 11:25:47.462 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  34. ][2022-06-23 11:25:47.590 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  35. ][2022-06-23 11:25:47.856 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  36. SELECT 1
  37. ][2022-06-23 11:25:47.877 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  38. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  39. ][2022-06-23 11:25:47.897 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  40. SELECT [MigrationId], [ProductVersion]
  41. FROM [__EFMigrationsHistory]
  42. ORDER BY [MigrationId];
  43. ][2022-06-23 11:25:47.961 +02:00 INF Now listening on: http://localhost:5116
  44. ][2022-06-23 11:25:47.964 +02:00 INF Application started. Press Ctrl+C to shut down.
  45. ][2022-06-23 11:25:47.964 +02:00 INF Hosting environment: Development
  46. ][2022-06-23 11:25:47.964 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
  47. ][2022-06-23 11:25:51.572 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
  48. ][2022-06-23 11:25:51.627 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
  49. ][2022-06-23 11:25:51.641 +02:00 INF Route matched with {action = "GetInsuranceCompanies", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO]]] GetInsuranceCompanies() on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  50. ][2022-06-23 11:25:51.790 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 144.8156ms
  51. ][2022-06-23 11:25:51.791 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
  52. ][2022-06-23 11:25:51.808 +02:00 ERR Error constructing handler for request of type MediatR.IRequestHandler`2[Diligent.WebAPI.Host.Mediator.InsuranceCompanies.Queries.GetInsuranceCompaniesQuery,Diligent.WebAPI.Host.Mediator.Result`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO]]]. Register your handlers with the container. See the samples in GitHub for examples.
  53. ][2022-06-23 11:25:51.829 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - - - 500 - application/json 258.8895ms
  54. ][2022-06-23 11:29:39.170 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  55. ][2022-06-23 11:29:39.237 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  56. ][2022-06-23 11:29:39.369 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  57. ][2022-06-23 11:29:39.631 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  58. SELECT 1
  59. ][2022-06-23 11:29:39.653 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  60. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  61. ][2022-06-23 11:29:39.672 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  62. SELECT [MigrationId], [ProductVersion]
  63. FROM [__EFMigrationsHistory]
  64. ORDER BY [MigrationId];
  65. ][2022-06-23 11:29:39.738 +02:00 INF Now listening on: http://localhost:5116
  66. ][2022-06-23 11:29:39.740 +02:00 INF Application started. Press Ctrl+C to shut down.
  67. ][2022-06-23 11:29:39.741 +02:00 INF Hosting environment: Development
  68. ][2022-06-23 11:29:39.741 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
  69. ][2022-06-23 11:29:42.943 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
  70. ][2022-06-23 11:29:43.083 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
  71. ][2022-06-23 11:29:43.084 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
  72. ][2022-06-23 11:29:43.087 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.8132ms
  73. ][2022-06-23 11:29:43.095 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 151.2877ms
  74. ][2022-06-23 11:29:43.105 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 22.9270ms
  75. ][2022-06-23 11:29:43.289 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
  76. ][2022-06-23 11:29:43.364 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 75.0199ms
  77. ][2022-06-23 11:29:56.033 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
  78. ][2022-06-23 11:29:56.041 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
  79. ][2022-06-23 11:29:56.056 +02:00 INF Route matched with {action = "GetInsuranceCompanies", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO]]] GetInsuranceCompanies() on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  80. ][2022-06-23 11:29:56.163 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  81. ][2022-06-23 11:29:56.374 +02:00 INF Executed DbCommand (10ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  82. SELECT [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
  83. FROM [InsuranceCompanies] AS [i]
  84. ][2022-06-23 11:29:56.460 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
  85. ][2022-06-23 11:29:56.476 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 415.7187ms
  86. ][2022-06-23 11:29:56.476 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
  87. ][2022-06-23 11:29:56.479 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - - - 200 - application/json;+charset=utf-8 445.4625ms
  88. ][2022-06-23 11:58:03.470 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  89. ][2022-06-23 11:58:03.540 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  90. ][2022-06-23 11:58:03.675 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  91. ][2022-06-23 11:58:03.942 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  92. SELECT 1
  93. ][2022-06-23 11:58:03.964 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  94. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  95. ][2022-06-23 11:58:03.983 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  96. SELECT [MigrationId], [ProductVersion]
  97. FROM [__EFMigrationsHistory]
  98. ORDER BY [MigrationId];
  99. ][2022-06-23 11:58:04.061 +02:00 INF Now listening on: http://localhost:5116
  100. ][2022-06-23 11:58:04.063 +02:00 INF Application started. Press Ctrl+C to shut down.
  101. ][2022-06-23 11:58:04.064 +02:00 INF Hosting environment: Development
  102. ][2022-06-23 11:58:04.064 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
  103. ][2022-06-23 11:58:05.193 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
  104. ][2022-06-23 11:58:05.337 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
  105. ][2022-06-23 11:58:05.340 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
  106. ][2022-06-23 11:58:05.343 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.5854ms
  107. ][2022-06-23 11:58:05.344 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 153.9007ms
  108. ][2022-06-23 11:58:05.357 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 19.8302ms
  109. ][2022-06-23 11:58:05.540 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
  110. ][2022-06-23 11:58:05.613 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 73.6194ms
  111. ][2022-06-23 11:58:19.984 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/3 - -
  112. ][2022-06-23 11:58:19.992 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
  113. ][2022-06-23 11:58:20.015 +02:00 INF Route matched with {action = "GetInsuranceCompany", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetInsuranceCompany(Int64) on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  114. ][2022-06-23 11:58:20.118 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  115. ][2022-06-23 11:58:20.386 +02:00 INF Executed DbCommand (29ms) [Parameters=[@__p_0='3'], CommandType='"Text"', CommandTimeout='30']
  116. SELECT TOP(1) [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
  117. FROM [InsuranceCompanies] AS [i]
  118. WHERE [i].[Id] = @__p_0
  119. ][2022-06-23 11:58:20.458 +02:00 INF Executing OkObjectResult, writing value of type 'Diligent.WebAPI.Data.Entities.InsuranceCompany'.
  120. ][2022-06-23 11:58:20.471 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host) in 451.4837ms
  121. ][2022-06-23 11:58:20.472 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
  122. ][2022-06-23 11:58:20.475 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/3 - - - 200 - application/json;+charset=utf-8 491.0239ms
  123. ][2022-06-23 11:58:25.011 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/3123 - -
  124. ][2022-06-23 11:58:25.012 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
  125. ][2022-06-23 11:58:25.012 +02:00 INF Route matched with {action = "GetInsuranceCompany", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetInsuranceCompany(Int64) on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  126. ][2022-06-23 11:58:25.054 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  127. ][2022-06-23 11:58:25.059 +02:00 INF Executed DbCommand (3ms) [Parameters=[@__p_0='3123'], CommandType='"Text"', CommandTimeout='30']
  128. SELECT TOP(1) [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
  129. FROM [InsuranceCompanies] AS [i]
  130. WHERE [i].[Id] = @__p_0
  131. ][2022-06-23 11:58:25.151 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host) in 139.2368ms
  132. ][2022-06-23 11:58:25.152 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
  133. ][2022-06-23 11:58:25.236 +02:00 ERR Insurance company with ID 3123 has not been found.
  134. ][2022-06-23 11:58:25.237 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/3123 - - - 404 - application/json 225.8242ms
  135. ][2022-06-23 12:04:26.844 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  136. ][2022-06-23 12:04:26.908 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  137. ][2022-06-23 12:04:27.032 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  138. ][2022-06-23 12:04:27.302 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  139. SELECT 1
  140. ][2022-06-23 12:04:27.325 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  141. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  142. ][2022-06-23 12:04:27.345 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  143. SELECT [MigrationId], [ProductVersion]
  144. FROM [__EFMigrationsHistory]
  145. ORDER BY [MigrationId];
  146. ][2022-06-23 12:04:27.416 +02:00 INF Now listening on: http://localhost:5116
  147. ][2022-06-23 12:04:27.420 +02:00 INF Application started. Press Ctrl+C to shut down.
  148. ][2022-06-23 12:04:27.420 +02:00 INF Hosting environment: Development
  149. ][2022-06-23 12:04:27.420 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
  150. ][2022-06-23 12:04:30.465 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/3123 - -
  151. ][2022-06-23 12:04:30.512 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
  152. ][2022-06-23 12:04:30.534 +02:00 INF Route matched with {action = "GetInsuranceCompany", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Diligent.WebAPI.Data.Entities.InsuranceCompany] GetInsuranceCompany(Int64) on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  153. ][2022-06-23 12:04:30.638 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  154. ][2022-06-23 12:04:30.899 +02:00 INF Executed DbCommand (25ms) [Parameters=[@__p_0='3123'], CommandType='"Text"', CommandTimeout='30']
  155. SELECT TOP(1) [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
  156. FROM [InsuranceCompanies] AS [i]
  157. WHERE [i].[Id] = @__p_0
  158. ][2022-06-23 12:04:31.010 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host) in 472.4015ms
  159. ][2022-06-23 12:04:31.011 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
  160. ][2022-06-23 12:04:31.109 +02:00 ERR Insurance company with ID 3123 has not been found.
  161. ][2022-06-23 12:04:31.128 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/3123 - - - 404 - application/json 665.5585ms
  162. ][2022-06-23 12:04:35.981 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/4 - -
  163. ][2022-06-23 12:04:35.982 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
  164. ][2022-06-23 12:04:35.983 +02:00 INF Route matched with {action = "GetInsuranceCompany", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Diligent.WebAPI.Data.Entities.InsuranceCompany] GetInsuranceCompany(Int64) on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  165. ][2022-06-23 12:04:36.023 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  166. ][2022-06-23 12:04:36.029 +02:00 INF Executed DbCommand (3ms) [Parameters=[@__p_0='4'], CommandType='"Text"', CommandTimeout='30']
  167. SELECT TOP(1) [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
  168. FROM [InsuranceCompanies] AS [i]
  169. WHERE [i].[Id] = @__p_0
  170. ][2022-06-23 12:04:36.083 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Data.Entities.InsuranceCompany'.
  171. ][2022-06-23 12:04:36.091 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host) in 108.5806ms
  172. ][2022-06-23 12:04:36.091 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
  173. ][2022-06-23 12:04:36.092 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/4 - - - 200 - application/json;+charset=utf-8 110.6589ms
  174. ][2022-06-23 12:32:05.071 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  175. ][2022-06-23 12:32:05.140 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  176. ][2022-06-23 12:32:05.268 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  177. ][2022-06-23 12:32:05.536 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  178. SELECT 1
  179. ][2022-06-23 12:32:05.558 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  180. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  181. ][2022-06-23 12:32:05.577 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  182. SELECT [MigrationId], [ProductVersion]
  183. FROM [__EFMigrationsHistory]
  184. ORDER BY [MigrationId];
  185. ][2022-06-23 12:32:05.644 +02:00 INF Now listening on: http://localhost:5116
  186. ][2022-06-23 12:32:05.646 +02:00 INF Application started. Press Ctrl+C to shut down.
  187. ][2022-06-23 12:32:05.647 +02:00 INF Hosting environment: Development
  188. ][2022-06-23 12:32:05.647 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
  189. ][2022-06-23 12:32:15.713 +02:00 INF Request starting HTTP/1.1 DELETE http://localhost:5116/v1.0/insuranceCompanies/5151 - -
  190. ][2022-06-23 12:32:15.747 +02:00 ERR An unhandled exception has occurred while executing the request.
  191. Microsoft.AspNetCore.Routing.Matching.AmbiguousMatchException: The request matched multiple endpoints. Matches:
  192. Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host)
  193. Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompanys (Diligent.WebAPI.Host)
  194. at Microsoft.AspNetCore.Routing.Matching.DefaultEndpointSelector.ReportAmbiguity(CandidateState[] candidateState)
  195. at Microsoft.AspNetCore.Routing.Matching.DefaultEndpointSelector.ProcessFinalCandidates(HttpContext httpContext, CandidateState[] candidateState)
  196. at Microsoft.AspNetCore.Routing.Matching.DefaultEndpointSelector.Select(HttpContext httpContext, CandidateState[] candidateState)
  197. at Microsoft.AspNetCore.Routing.Matching.DefaultEndpointSelector.SelectAsync(HttpContext httpContext, CandidateSet candidateSet)
  198. at Microsoft.AspNetCore.Routing.Matching.DfaMatcher.SelectEndpointWithPoliciesAsync(HttpContext httpContext, IEndpointSelectorPolicy[] policies, CandidateSet candidateSet)
  199. at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatch|8_1(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task matchTask)
  200. at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
  201. ][2022-06-23 12:32:15.777 +02:00 INF Request finished HTTP/1.1 DELETE http://localhost:5116/v1.0/insuranceCompanies/5151 - - - 500 - text/plain;+charset=utf-8 66.0703ms
  202. ][2022-06-23 12:32:32.028 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  203. ][2022-06-23 12:32:32.097 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  204. ][2022-06-23 12:32:32.223 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  205. ][2022-06-23 12:32:32.510 +02:00 INF Executed DbCommand (18ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  206. SELECT 1
  207. ][2022-06-23 12:32:32.533 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  208. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  209. ][2022-06-23 12:32:32.553 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  210. SELECT [MigrationId], [ProductVersion]
  211. FROM [__EFMigrationsHistory]
  212. ORDER BY [MigrationId];
  213. ][2022-06-23 12:32:32.619 +02:00 INF Now listening on: http://localhost:5116
  214. ][2022-06-23 12:32:32.622 +02:00 INF Application started. Press Ctrl+C to shut down.
  215. ][2022-06-23 12:32:32.622 +02:00 INF Hosting environment: Development
  216. ][2022-06-23 12:32:32.622 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
  217. ][2022-06-23 12:32:33.057 +02:00 INF Request starting HTTP/1.1 DELETE http://localhost:5116/v1.0/insuranceCompanies/5151 - -
  218. ][2022-06-23 12:32:33.098 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host)'
  219. ][2022-06-23 12:32:33.122 +02:00 INF Route matched with {action = "DeleteInsuranceCompany", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] DeleteInsuranceCompany(Int64) on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  220. ][2022-06-23 12:32:33.239 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  221. ][2022-06-23 12:32:33.498 +02:00 INF Executed DbCommand (27ms) [Parameters=[@__p_0='5151'], CommandType='"Text"', CommandTimeout='30']
  222. SELECT TOP(1) [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
  223. FROM [InsuranceCompanies] AS [i]
  224. WHERE [i].[Id] = @__p_0
  225. ][2022-06-23 12:32:33.615 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host) in 487.9412ms
  226. ][2022-06-23 12:32:33.616 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host)'
  227. ][2022-06-23 12:32:33.713 +02:00 ERR Exception of type 'Diligent.WebAPI.Host.Exceptions.NotFoundException' was thrown.
  228. ][2022-06-23 12:32:33.730 +02:00 INF Request finished HTTP/1.1 DELETE http://localhost:5116/v1.0/insuranceCompanies/5151 - - - 404 - application/json 676.1846ms
  229. ][2022-06-23 12:33:23.123 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  230. ][2022-06-23 12:33:23.190 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  231. ][2022-06-23 12:33:23.322 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  232. ][2022-06-23 12:33:23.686 +02:00 INF Executed DbCommand (18ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  233. SELECT 1
  234. ][2022-06-23 12:33:23.712 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  235. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  236. ][2022-06-23 12:33:23.736 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  237. SELECT [MigrationId], [ProductVersion]
  238. FROM [__EFMigrationsHistory]
  239. ORDER BY [MigrationId];
  240. ][2022-06-23 12:33:23.828 +02:00 INF Now listening on: http://localhost:5116
  241. ][2022-06-23 12:33:23.832 +02:00 INF Application started. Press Ctrl+C to shut down.
  242. ][2022-06-23 12:33:23.832 +02:00 INF Hosting environment: Development
  243. ][2022-06-23 12:33:23.832 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
  244. ][2022-06-23 12:33:23.878 +02:00 INF Request starting HTTP/1.1 DELETE http://localhost:5116/v1.0/insuranceCompanies/5151 - -
  245. ][2022-06-23 12:33:23.923 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host)'
  246. ][2022-06-23 12:33:23.946 +02:00 INF Route matched with {action = "DeleteInsuranceCompany", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] DeleteInsuranceCompany(Int64) on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  247. ][2022-06-23 12:33:24.086 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  248. ][2022-06-23 12:33:24.358 +02:00 INF Executed DbCommand (25ms) [Parameters=[@__p_0='5151'], CommandType='"Text"', CommandTimeout='30']
  249. SELECT TOP(1) [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
  250. FROM [InsuranceCompanies] AS [i]
  251. WHERE [i].[Id] = @__p_0
  252. ][2022-06-23 12:33:24.476 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host) in 525.32ms
  253. ][2022-06-23 12:33:24.477 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host)'
  254. ][2022-06-23 12:33:24.575 +02:00 ERR Insurance Company with ID 5151 has not been found.
  255. ][2022-06-23 12:33:24.592 +02:00 INF Request finished HTTP/1.1 DELETE http://localhost:5116/v1.0/insuranceCompanies/5151 - - - 404 - application/json 717.3545ms
  256. ][2022-06-23 12:33:31.800 +02:00 INF Request starting HTTP/1.1 DELETE http://localhost:5116/v1.0/insuranceCompanies/5 - -
  257. ][2022-06-23 12:33:31.802 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host)'
  258. ][2022-06-23 12:33:31.802 +02:00 INF Route matched with {action = "DeleteInsuranceCompany", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] DeleteInsuranceCompany(Int64) on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  259. ][2022-06-23 12:33:31.843 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  260. ][2022-06-23 12:33:31.849 +02:00 INF Executed DbCommand (3ms) [Parameters=[@__p_0='5'], CommandType='"Text"', CommandTimeout='30']
  261. SELECT TOP(1) [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
  262. FROM [InsuranceCompanies] AS [i]
  263. WHERE [i].[Id] = @__p_0
  264. ][2022-06-23 12:33:31.988 +02:00 INF Executed DbCommand (5ms) [Parameters=[@p0='5'], CommandType='"Text"', CommandTimeout='30']
  265. SET NOCOUNT ON;
  266. DELETE FROM [InsuranceCompanies]
  267. WHERE [Id] = @p0;
  268. SELECT @@ROWCOUNT;
  269. ][2022-06-23 12:33:32.014 +02:00 INF Executing StatusCodeResult, setting HTTP status code 200
  270. ][2022-06-23 12:33:32.014 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host) in 211.7203ms
  271. ][2022-06-23 12:33:32.014 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host)'
  272. ][2022-06-23 12:33:32.015 +02:00 INF Request finished HTTP/1.1 DELETE http://localhost:5116/v1.0/insuranceCompanies/5 - - - 200 0 - 214.6769ms
  273. ][2022-06-23 12:33:38.936 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/5 - -
  274. ][2022-06-23 12:33:38.938 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
  275. ][2022-06-23 12:33:38.941 +02:00 INF Route matched with {action = "GetInsuranceCompany", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Diligent.WebAPI.Data.Entities.InsuranceCompany] GetInsuranceCompany(Int64) on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  276. ][2022-06-23 12:33:38.945 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  277. ][2022-06-23 12:33:38.948 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__p_0='5'], CommandType='"Text"', CommandTimeout='30']
  278. SELECT TOP(1) [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
  279. FROM [InsuranceCompanies] AS [i]
  280. WHERE [i].[Id] = @__p_0
  281. ][2022-06-23 12:33:39.021 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host) in 79.6302ms
  282. ][2022-06-23 12:33:39.021 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
  283. ][2022-06-23 12:33:39.097 +02:00 ERR Insurance company with ID 5 has not been found.
  284. ][2022-06-23 12:33:39.097 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/5 - - - 404 - application/json 161.7156ms
  285. ][2022-06-23 12:33:49.070 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
  286. ][2022-06-23 12:33:49.070 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
  287. ][2022-06-23 12:33:49.073 +02:00 INF Route matched with {action = "GetInsuranceCompanies", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO]]] GetInsuranceCompanies() on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  288. ][2022-06-23 12:33:49.081 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  289. ][2022-06-23 12:33:49.087 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  290. SELECT [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
  291. FROM [InsuranceCompanies] AS [i]
  292. ][2022-06-23 12:33:49.109 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
  293. ][2022-06-23 12:33:49.123 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 50.3532ms
  294. ][2022-06-23 12:33:49.123 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
  295. ][2022-06-23 12:33:49.123 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - - - 200 - application/json;+charset=utf-8 53.4948ms
  296. ][2022-06-23 12:38:46.308 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  297. ][2022-06-23 12:38:46.382 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  298. ][2022-06-23 12:38:46.505 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  299. ][2022-06-23 12:38:46.776 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  300. SELECT 1
  301. ][2022-06-23 12:38:46.797 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  302. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  303. ][2022-06-23 12:38:46.816 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  304. SELECT [MigrationId], [ProductVersion]
  305. FROM [__EFMigrationsHistory]
  306. ORDER BY [MigrationId];
  307. ][2022-06-23 12:38:46.881 +02:00 INF Now listening on: http://localhost:5116
  308. ][2022-06-23 12:38:46.883 +02:00 INF Application started. Press Ctrl+C to shut down.
  309. ][2022-06-23 12:38:46.883 +02:00 INF Hosting environment: Development
  310. ][2022-06-23 12:38:46.884 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
  311. ][2022-06-23 12:38:52.532 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/5 - -
  312. ][2022-06-23 12:38:52.576 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
  313. ][2022-06-23 12:38:52.600 +02:00 INF Route matched with {action = "GetInsuranceCompany", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Diligent.WebAPI.Data.Entities.InsuranceCompany] GetInsuranceCompany(Int64) on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  314. ][2022-06-23 12:38:52.703 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  315. ][2022-06-23 12:38:52.950 +02:00 INF Executed DbCommand (27ms) [Parameters=[@__p_0='5'], CommandType='"Text"', CommandTimeout='30']
  316. SELECT TOP(1) [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
  317. FROM [InsuranceCompanies] AS [i]
  318. WHERE [i].[Id] = @__p_0
  319. ][2022-06-23 12:38:53.062 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host) in 457.7116ms
  320. ][2022-06-23 12:38:53.062 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
  321. ][2022-06-23 12:38:53.161 +02:00 ERR Insurance company with ID 5 has not been found.
  322. ][2022-06-23 12:38:53.180 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/5 - - - 404 - application/json 650.1624ms
  323. ][2022-06-23 12:38:57.787 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/3 - -
  324. ][2022-06-23 12:38:57.788 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
  325. ][2022-06-23 12:38:57.789 +02:00 INF Route matched with {action = "GetInsuranceCompany", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Diligent.WebAPI.Data.Entities.InsuranceCompany] GetInsuranceCompany(Int64) on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  326. ][2022-06-23 12:38:57.828 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  327. ][2022-06-23 12:38:57.833 +02:00 INF Executed DbCommand (3ms) [Parameters=[@__p_0='3'], CommandType='"Text"', CommandTimeout='30']
  328. SELECT TOP(1) [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
  329. FROM [InsuranceCompanies] AS [i]
  330. WHERE [i].[Id] = @__p_0
  331. ][2022-06-23 12:38:57.886 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Data.Entities.InsuranceCompany'.
  332. ][2022-06-23 12:38:57.894 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host) in 105.2728ms
  333. ][2022-06-23 12:38:57.894 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
  334. ][2022-06-23 12:38:57.894 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/3 - - - 200 - application/json;+charset=utf-8 107.0702ms
  335. ][2022-06-23 12:39:17.816 +02:00 INF Request starting HTTP/1.1 DELETE http://localhost:5116/v1.0/insuranceCompanies/3 - -
  336. ][2022-06-23 12:39:17.817 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host)'
  337. ][2022-06-23 12:39:17.819 +02:00 INF Route matched with {action = "DeleteInsuranceCompany", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] DeleteInsuranceCompany(Int64) on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  338. ][2022-06-23 12:39:17.824 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  339. ][2022-06-23 12:39:17.827 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__p_0='3'], CommandType='"Text"', CommandTimeout='30']
  340. SELECT TOP(1) [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
  341. FROM [InsuranceCompanies] AS [i]
  342. WHERE [i].[Id] = @__p_0
  343. ][2022-06-23 12:39:17.911 +02:00 INF Executed DbCommand (2ms) [Parameters=[@p0='3'], CommandType='"Text"', CommandTimeout='30']
  344. SET NOCOUNT ON;
  345. DELETE FROM [InsuranceCompanies]
  346. WHERE [Id] = @p0;
  347. SELECT @@ROWCOUNT;
  348. ][2022-06-23 12:39:17.934 +02:00 INF Executing OkObjectResult, writing value of type 'MediatR.Unit'.
  349. ][2022-06-23 12:39:17.938 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host) in 119.0347ms
  350. ][2022-06-23 12:39:17.938 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host)'
  351. ][2022-06-23 12:39:17.939 +02:00 INF Request finished HTTP/1.1 DELETE http://localhost:5116/v1.0/insuranceCompanies/3 - - - 200 - application/json;+charset=utf-8 122.4659ms
  352. ][2022-06-23 13:05:29.147 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  353. ][2022-06-23 13:05:29.211 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  354. ][2022-06-23 13:05:29.339 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  355. ][2022-06-23 13:05:29.603 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  356. SELECT 1
  357. ][2022-06-23 13:05:29.625 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  358. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  359. ][2022-06-23 13:05:29.646 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  360. SELECT [MigrationId], [ProductVersion]
  361. FROM [__EFMigrationsHistory]
  362. ORDER BY [MigrationId];
  363. ][2022-06-23 13:05:29.711 +02:00 INF Now listening on: http://localhost:5116
  364. ][2022-06-23 13:05:29.713 +02:00 INF Application started. Press Ctrl+C to shut down.
  365. ][2022-06-23 13:05:29.714 +02:00 INF Hosting environment: Development
  366. ][2022-06-23 13:05:29.714 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
  367. ][2022-06-23 13:07:00.612 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  368. ][2022-06-23 13:07:00.679 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  369. ][2022-06-23 13:07:00.800 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  370. ][2022-06-23 13:07:01.063 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  371. SELECT 1
  372. ][2022-06-23 13:07:01.085 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  373. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  374. ][2022-06-23 13:07:01.108 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  375. SELECT [MigrationId], [ProductVersion]
  376. FROM [__EFMigrationsHistory]
  377. ORDER BY [MigrationId];
  378. ][2022-06-23 13:07:01.186 +02:00 INF Now listening on: http://localhost:5116
  379. ][2022-06-23 13:07:01.188 +02:00 INF Application started. Press Ctrl+C to shut down.
  380. ][2022-06-23 13:07:01.189 +02:00 INF Hosting environment: Development
  381. ][2022-06-23 13:07:01.189 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
  382. ][2022-06-23 13:07:16.690 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insuranceCompanies application/json 3
  383. ][2022-06-23 13:07:16.733 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host)'
  384. ][2022-06-23 13:07:16.756 +02:00 INF Route matched with {action = "CreateInsuranceCompany", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateInsuranceCompany(Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanySaveResource) on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  385. ][2022-06-23 13:07:16.883 +02:00 INF Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'.
  386. ][2022-06-23 13:07:16.896 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host) in 135.644ms
  387. ][2022-06-23 13:07:16.896 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host)'
  388. ][2022-06-23 13:07:16.898 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/insuranceCompanies application/json 3 - 400 - application/problem+json;+charset=utf-8 210.3233ms
  389. ][2022-06-23 13:07:28.171 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insuranceCompanies application/json 194
  390. ][2022-06-23 13:07:28.173 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host)'
  391. ][2022-06-23 13:07:28.173 +02:00 INF Route matched with {action = "CreateInsuranceCompany", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateInsuranceCompany(Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanySaveResource) on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  392. ][2022-06-23 13:07:28.204 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  393. ][2022-06-23 13:07:28.387 +02:00 INF Executed DbCommand (26ms) [Parameters=[@p0='string' (Nullable = false) (Size = 4000), @p1='string' (Nullable = false) (Size = 4000), @p2='0001-01-01T00:00:00.0000000', @p3=NULL (DbType = DateTime2), @p4='string' (Nullable = false) (Size = 4000), @p5='string' (Nullable = false) (Size = 4000), @p6='string' (Nullable = false) (Size = 4000), @p7='najnovije' (Nullable = false) (Size = 4000), @p8='string' (Nullable = false) (Size = 4000), @p9='string' (Nullable = false) (Size = 4000), @p10=NULL (DbType = DateTime2)], CommandType='"Text"', CommandTimeout='30']
  394. SET NOCOUNT ON;
  395. INSERT INTO [InsuranceCompanies] ([City], [Country], [CreatedAtUtc], [DeletedAtUtc], [Fax], [LegalAddress], [LegalEmail], [Name], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
  396. VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10);
  397. SELECT [Id]
  398. FROM [InsuranceCompanies]
  399. WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
  400. ][2022-06-23 13:07:28.433 +02:00 INF Executing OkObjectResult, writing value of type 'Diligent.WebAPI.Data.Entities.InsuranceCompany'.
  401. ][2022-06-23 13:07:28.442 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host) in 268.2717ms
  402. ][2022-06-23 13:07:28.442 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host)'
  403. ][2022-06-23 13:07:28.445 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/insuranceCompanies application/json 194 - 200 - application/json;+charset=utf-8 274.5094ms
  404. ][2022-06-23 13:07:36.389 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
  405. ][2022-06-23 13:07:36.390 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
  406. ][2022-06-23 13:07:36.393 +02:00 INF Route matched with {action = "GetInsuranceCompanies", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO]]] GetInsuranceCompanies() on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  407. ][2022-06-23 13:07:36.438 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  408. ][2022-06-23 13:07:36.593 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  409. SELECT [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
  410. FROM [InsuranceCompanies] AS [i]
  411. ][2022-06-23 13:07:36.614 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
  412. ][2022-06-23 13:07:36.617 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 223.7707ms
  413. ][2022-06-23 13:07:36.617 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
  414. ][2022-06-23 13:07:36.617 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - - - 200 - application/json;+charset=utf-8 228.0852ms
  415. ][2022-06-23 13:09:37.008 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  416. ][2022-06-23 13:09:37.073 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  417. ][2022-06-23 13:09:37.195 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  418. ][2022-06-23 13:09:37.473 +02:00 INF Executed DbCommand (20ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  419. SELECT 1
  420. ][2022-06-23 13:09:37.496 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  421. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  422. ][2022-06-23 13:09:37.516 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  423. SELECT [MigrationId], [ProductVersion]
  424. FROM [__EFMigrationsHistory]
  425. ORDER BY [MigrationId];
  426. ][2022-06-23 13:09:37.583 +02:00 INF Now listening on: http://localhost:5116
  427. ][2022-06-23 13:09:37.586 +02:00 INF Application started. Press Ctrl+C to shut down.
  428. ][2022-06-23 13:09:37.586 +02:00 INF Hosting environment: Development
  429. ][2022-06-23 13:09:37.586 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
  430. ][2022-06-23 13:10:52.551 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insurancePolicies application/json 122
  431. ][2022-06-23 13:10:52.602 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host)'
  432. ][2022-06-23 13:10:52.627 +02:00 INF Route matched with {action = "CreateInsurancePolicy", controller = "InsurancePolicies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] CreateInsurancePolicy(Diligent.WebAPI.Host.DTOs.InsurancePolicyDTOs.InsurancePolicyCreateDTO) on controller Diligent.WebAPI.Host.Controllers.InsurancePoliciesController (Diligent.WebAPI.Host).
  433. ][2022-06-23 13:10:52.668 +02:00 INF Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'.
  434. ][2022-06-23 13:10:52.679 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host) in 48.4695ms
  435. ][2022-06-23 13:10:52.680 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host)'
  436. ][2022-06-23 13:10:52.681 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/insurancePolicies application/json 122 - 400 - application/problem+json;+charset=utf-8 132.8112ms
  437. ][2022-06-23 13:11:10.104 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers - -
  438. ][2022-06-23 13:11:10.109 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
  439. ][2022-06-23 13:11:10.112 +02:00 INF Route matched with {action = "GetInsurers", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetInsurers() on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  440. ][2022-06-23 13:11:10.219 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  441. ][2022-06-23 13:11:10.499 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  442. SELECT [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  443. FROM [Insurers] AS [i]
  444. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  445. ][2022-06-23 13:11:10.527 +02:00 INF Executing OkObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
  446. ][2022-06-23 13:11:10.531 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host) in 419.521ms
  447. ][2022-06-23 13:11:10.532 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
  448. ][2022-06-23 13:11:10.536 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insurers - - - 200 - application/json;+charset=utf-8 431.3409ms
  449. ][2022-06-23 13:11:25.408 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insurancePolicies application/json 1016
  450. ][2022-06-23 13:11:25.409 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host)'
  451. ][2022-06-23 13:11:25.409 +02:00 INF Route matched with {action = "CreateInsurancePolicy", controller = "InsurancePolicies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] CreateInsurancePolicy(Diligent.WebAPI.Host.DTOs.InsurancePolicyDTOs.InsurancePolicyCreateDTO) on controller Diligent.WebAPI.Host.Controllers.InsurancePoliciesController (Diligent.WebAPI.Host).
  452. ][2022-06-23 13:11:25.413 +02:00 INF Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'.
  453. ][2022-06-23 13:11:25.414 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host) in 5.2328ms
  454. ][2022-06-23 13:11:25.414 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host)'
  455. ][2022-06-23 13:11:25.414 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/insurancePolicies application/json 1016 - 400 - application/problem+json;+charset=utf-8 6.2487ms
  456. ][2022-06-23 13:11:39.416 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insurancePolicies application/json 1017
  457. ][2022-06-23 13:11:39.416 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host)'
  458. ][2022-06-23 13:11:39.417 +02:00 INF Route matched with {action = "CreateInsurancePolicy", controller = "InsurancePolicies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] CreateInsurancePolicy(Diligent.WebAPI.Host.DTOs.InsurancePolicyDTOs.InsurancePolicyCreateDTO) on controller Diligent.WebAPI.Host.Controllers.InsurancePoliciesController (Diligent.WebAPI.Host).
  459. ][2022-06-23 13:11:39.427 +02:00 INF Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'.
  460. ][2022-06-23 13:11:39.427 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host) in 10.2611ms
  461. ][2022-06-23 13:11:39.427 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host)'
  462. ][2022-06-23 13:11:39.427 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/insurancePolicies application/json 1017 - 400 - application/problem+json;+charset=utf-8 10.8555ms
  463. ][2022-06-23 13:11:52.549 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insurancePolicies application/json 1015
  464. ][2022-06-23 13:11:52.550 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host)'
  465. ][2022-06-23 13:11:52.550 +02:00 INF Route matched with {action = "CreateInsurancePolicy", controller = "InsurancePolicies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] CreateInsurancePolicy(Diligent.WebAPI.Host.DTOs.InsurancePolicyDTOs.InsurancePolicyCreateDTO) on controller Diligent.WebAPI.Host.Controllers.InsurancePoliciesController (Diligent.WebAPI.Host).
  466. ][2022-06-23 13:11:52.615 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  467. ][2022-06-23 13:11:52.835 +02:00 INF Executed DbCommand (19ms) [Parameters=[@p0='string' (Nullable = false) (Size = 4000), @p1='string' (Nullable = false) (Size = 4000), @p2='2022-06-23T11:09:50.1050000Z', @p3='2022-06-23T11:09:50.1050000Z' (Nullable = true), @p4='string' (Nullable = false) (Size = 4000), @p5='string' (Nullable = false) (Size = 4000), @p6='string' (Nullable = false) (Size = 4000), @p7='string' (Nullable = false) (Size = 4000), @p8='string' (Nullable = false) (Size = 4000), @p9='string' (Nullable = false) (Size = 4000), @p10='2022-06-23T11:09:50.1050000Z' (Nullable = true)], CommandType='"Text"', CommandTimeout='30']
  468. SET NOCOUNT ON;
  469. INSERT INTO [InsuranceCompanies] ([City], [Country], [CreatedAtUtc], [DeletedAtUtc], [Fax], [LegalAddress], [LegalEmail], [Name], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
  470. VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10);
  471. SELECT [Id]
  472. FROM [InsuranceCompanies]
  473. WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
  474. ][2022-06-23 13:11:52.856 +02:00 INF Executed DbCommand (3ms) [Parameters=[@p11='string' (Nullable = false) (Size = 4000), @p12='string' (Nullable = false) (Size = 4000), @p13='string' (Nullable = false) (Size = 4000), @p14='2022-06-23T11:09:50.1050000Z', @p15='2022-06-23T11:09:50.1050000Z', @p16='2022-06-23T11:09:50.1050000Z' (Nullable = true), @p17='string' (Nullable = false) (Size = 4000), @p18='string' (Nullable = false) (Size = 4000), @p19='20003', @p20='string' (Nullable = false) (Size = 4000), @p21='string' (Nullable = false) (Size = 4000), @p22='string' (Nullable = false) (Size = 4000), @p23='2022-06-23T11:09:50.1050000Z' (Nullable = true)], CommandType='"Text"', CommandTimeout='30']
  475. SET NOCOUNT ON;
  476. INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
  477. VALUES (@p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21, @p22, @p23);
  478. SELECT [Id]
  479. FROM [Insurers]
  480. WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
  481. ][2022-06-23 13:11:52.868 +02:00 INF Executed DbCommand (10ms) [Parameters=[@p24='0001-01-01T00:00:00.0000000', @p25=NULL (DbType = DateTime2), @p26='2022-06-23T11:09:50.1050000Z', @p27='1', @p28='0' (Precision = 18) (Scale = 2), @p29='2022-06-23T11:09:50.1050000Z', @p30='string' (Nullable = false) (Size = 4000), @p31=NULL (DbType = DateTime2)], CommandType='"Text"', CommandTimeout='30']
  482. SET NOCOUNT ON;
  483. INSERT INTO [InsurancePolicies] ([CreatedAtUtc], [DeletedAtUtc], [EndDate], [InsurerId], [Premium], [StartDate], [Type], [UpdatedAtUtc])
  484. VALUES (@p24, @p25, @p26, @p27, @p28, @p29, @p30, @p31);
  485. SELECT [Id]
  486. FROM [InsurancePolicies]
  487. WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
  488. ][2022-06-23 13:11:52.893 +02:00 INF Executing CreatedAtActionResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurancePolicyDTOs.InsurancePolicyReadDTO'.
  489. ][2022-06-23 13:11:52.922 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host) in 372.2376ms
  490. ][2022-06-23 13:11:52.922 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host)'
  491. ][2022-06-23 13:11:52.923 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/insurancePolicies application/json 1015 - 201 - application/json;+charset=utf-8 373.3382ms
  492. ][2022-06-23 13:12:10.882 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurancePolicies - -
  493. ][2022-06-23 13:12:10.883 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicies (Diligent.WebAPI.Host)'
  494. ][2022-06-23 13:12:10.885 +02:00 INF Route matched with {action = "GetInsurancePolicies", controller = "InsurancePolicies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsurancePolicyDTOs.InsurancePolicyReadDTO]]] GetInsurancePolicies() on controller Diligent.WebAPI.Host.Controllers.InsurancePoliciesController (Diligent.WebAPI.Host).
  495. ][2022-06-23 13:12:10.888 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  496. ][2022-06-23 13:12:10.908 +02:00 INF Executed DbCommand (10ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  497. SELECT [i].[Id], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[EndDate], [i].[InsurerId], [i].[Premium], [i].[StartDate], [i].[Type], [i].[UpdatedAtUtc], [i0].[Id], [i0].[Address], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DateOfBirth], [i0].[DeletedAtUtc], [i0].[Email], [i0].[FirstName], [i0].[InsuranceCompanyId], [i0].[LastName], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc], [i1].[Id], [i1].[City], [i1].[Country], [i1].[CreatedAtUtc], [i1].[DeletedAtUtc], [i1].[Fax], [i1].[LegalAddress], [i1].[LegalEmail], [i1].[Name], [i1].[PhoneNumber], [i1].[PostalCode], [i1].[UpdatedAtUtc]
  498. FROM [InsurancePolicies] AS [i]
  499. INNER JOIN [Insurers] AS [i0] ON [i].[InsurerId] = [i0].[Id]
  500. INNER JOIN [InsuranceCompanies] AS [i1] ON [i0].[InsuranceCompanyId] = [i1].[Id]
  501. ][2022-06-23 13:12:10.918 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.DTOs.InsurancePolicyDTOs.InsurancePolicyReadDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
  502. ][2022-06-23 13:12:10.918 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicies (Diligent.WebAPI.Host) in 33.5329ms
  503. ][2022-06-23 13:12:10.918 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicies (Diligent.WebAPI.Host)'
  504. ][2022-06-23 13:12:10.919 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insurancePolicies - - - 200 - application/json;+charset=utf-8 36.1418ms
  505. ][2022-06-23 13:12:39.408 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
  506. ][2022-06-23 13:12:39.502 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
  507. ][2022-06-23 13:12:39.502 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
  508. ][2022-06-23 13:12:39.503 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 94.8321ms
  509. ][2022-06-23 13:12:39.504 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.7719ms
  510. ][2022-06-23 13:12:39.514 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 11.6039ms
  511. ][2022-06-23 13:12:39.689 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
  512. ][2022-06-23 13:12:39.765 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 75.6613ms
  513. ][2022-06-23 13:12:52.177 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
  514. ][2022-06-23 13:12:52.177 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
  515. ][2022-06-23 13:12:52.179 +02:00 INF Route matched with {action = "GetInsuranceCompanies", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO]]] GetInsuranceCompanies() on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  516. ][2022-06-23 13:12:52.183 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  517. ][2022-06-23 13:12:52.188 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  518. SELECT [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
  519. FROM [InsuranceCompanies] AS [i]
  520. ][2022-06-23 13:12:52.196 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
  521. ][2022-06-23 13:12:52.198 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 18.9864ms
  522. ][2022-06-23 13:12:52.198 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
  523. ][2022-06-23 13:12:52.198 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - - - 200 - application/json;+charset=utf-8 21.6009ms
  524. ][2022-06-23 13:13:18.575 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insuranceCompanies application/json 190
  525. ][2022-06-23 13:13:18.575 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host)'
  526. ][2022-06-23 13:13:18.577 +02:00 INF Route matched with {action = "CreateInsuranceCompany", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateInsuranceCompany(Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanySaveResource) on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  527. ][2022-06-23 13:13:18.586 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  528. ][2022-06-23 13:13:18.594 +02:00 INF Executed DbCommand (2ms) [Parameters=[@p0='string' (Nullable = false) (Size = 4000), @p1='string' (Nullable = false) (Size = 4000), @p2='0001-01-01T00:00:00.0000000', @p3=NULL (DbType = DateTime2), @p4='string' (Nullable = false) (Size = 4000), @p5='string' (Nullable = false) (Size = 4000), @p6='string' (Nullable = false) (Size = 4000), @p7='hello' (Nullable = false) (Size = 4000), @p8='string' (Nullable = false) (Size = 4000), @p9='string' (Nullable = false) (Size = 4000), @p10=NULL (DbType = DateTime2)], CommandType='"Text"', CommandTimeout='30']
  529. SET NOCOUNT ON;
  530. INSERT INTO [InsuranceCompanies] ([City], [Country], [CreatedAtUtc], [DeletedAtUtc], [Fax], [LegalAddress], [LegalEmail], [Name], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
  531. VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10);
  532. SELECT [Id]
  533. FROM [InsuranceCompanies]
  534. WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
  535. ][2022-06-23 13:13:18.602 +02:00 INF Executing OkObjectResult, writing value of type 'Diligent.WebAPI.Data.Entities.InsuranceCompany'.
  536. ][2022-06-23 13:13:18.602 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host) in 24.9185ms
  537. ][2022-06-23 13:13:18.602 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host)'
  538. ][2022-06-23 13:13:18.602 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/insuranceCompanies application/json 190 - 200 - application/json;+charset=utf-8 27.3927ms
  539. ][2022-06-23 13:13:42.949 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
  540. ][2022-06-23 13:13:42.949 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
  541. ][2022-06-23 13:13:42.949 +02:00 INF Route matched with {action = "GetInsuranceCompanies", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO]]] GetInsuranceCompanies() on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  542. ][2022-06-23 13:13:42.951 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  543. ][2022-06-23 13:13:42.954 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  544. SELECT [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
  545. FROM [InsuranceCompanies] AS [i]
  546. ][2022-06-23 13:13:42.954 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
  547. ][2022-06-23 13:13:42.954 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 5.236ms
  548. ][2022-06-23 13:13:42.954 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
  549. ][2022-06-23 13:13:42.955 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - - - 200 - application/json;+charset=utf-8 5.7557ms
  550. ][2022-06-23 13:15:29.260 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  551. ][2022-06-23 13:15:29.326 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  552. ][2022-06-23 13:15:29.455 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  553. ][2022-06-23 13:15:29.727 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  554. SELECT 1
  555. ][2022-06-23 13:15:29.749 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  556. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  557. ][2022-06-23 13:15:29.770 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  558. SELECT [MigrationId], [ProductVersion]
  559. FROM [__EFMigrationsHistory]
  560. ORDER BY [MigrationId];
  561. ][2022-06-23 13:15:29.839 +02:00 INF Now listening on: http://localhost:5116
  562. ][2022-06-23 13:15:29.841 +02:00 INF Application started. Press Ctrl+C to shut down.
  563. ][2022-06-23 13:15:29.842 +02:00 INF Hosting environment: Development
  564. ][2022-06-23 13:15:29.842 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
  565. ][2022-06-23 13:16:25.782 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insuranceCompanies application/json 184
  566. ][2022-06-23 13:16:25.832 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host)'
  567. ][2022-06-23 13:16:25.854 +02:00 INF Route matched with {action = "CreateInsuranceCompany", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateInsuranceCompany(Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanySaveResource) on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  568. ][2022-06-23 13:16:26.011 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  569. ][2022-06-23 13:16:26.197 +02:00 INF Executed DbCommand (25ms) [Parameters=[@p0='string' (Nullable = false) (Size = 4000), @p1='string' (Nullable = false) (Size = 4000), @p2='0001-01-01T00:00:00.0000000', @p3=NULL (DbType = DateTime2), @p4='string' (Nullable = false) (Size = 4000), @p5='string' (Nullable = false) (Size = 4000), @p6='' (Nullable = false) (Size = 4000), @p7='hello' (Nullable = false) (Size = 4000), @p8='string' (Nullable = false) (Size = 4000), @p9='string' (Nullable = false) (Size = 4000), @p10=NULL (DbType = DateTime2)], CommandType='"Text"', CommandTimeout='30']
  570. SET NOCOUNT ON;
  571. INSERT INTO [InsuranceCompanies] ([City], [Country], [CreatedAtUtc], [DeletedAtUtc], [Fax], [LegalAddress], [LegalEmail], [Name], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
  572. VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10);
  573. SELECT [Id]
  574. FROM [InsuranceCompanies]
  575. WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
  576. ][2022-06-23 13:16:26.252 +02:00 INF Executing OkObjectResult, writing value of type 'Diligent.WebAPI.Data.Entities.InsuranceCompany'.
  577. ][2022-06-23 13:16:26.276 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host) in 417.4641ms
  578. ][2022-06-23 13:16:26.276 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host)'
  579. ][2022-06-23 13:16:26.282 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/insuranceCompanies application/json 184 - 200 - application/json;+charset=utf-8 501.9452ms
  580. ][2022-06-23 13:44:54.568 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  581. ][2022-06-23 13:44:54.635 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  582. ][2022-06-23 13:44:54.758 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  583. ][2022-06-23 13:44:55.028 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  584. SELECT 1
  585. ][2022-06-23 13:44:55.049 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  586. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  587. ][2022-06-23 13:44:55.069 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  588. SELECT [MigrationId], [ProductVersion]
  589. FROM [__EFMigrationsHistory]
  590. ORDER BY [MigrationId];
  591. ][2022-06-23 13:44:55.137 +02:00 INF Now listening on: http://localhost:5116
  592. ][2022-06-23 13:44:55.140 +02:00 INF Application started. Press Ctrl+C to shut down.
  593. ][2022-06-23 13:44:55.140 +02:00 INF Hosting environment: Development
  594. ][2022-06-23 13:44:55.140 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
  595. ][2022-06-23 13:45:00.180 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
  596. ][2022-06-23 13:45:00.318 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
  597. ][2022-06-23 13:45:00.321 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
  598. ][2022-06-23 13:45:00.324 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.7451ms
  599. ][2022-06-23 13:45:00.329 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 152.0453ms
  600. ][2022-06-23 13:45:00.346 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 28.3443ms
  601. ][2022-06-23 13:45:00.521 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
  602. ][2022-06-23 13:45:00.593 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 71.7386ms
  603. ][2022-06-23 13:45:05.264 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
  604. ][2022-06-23 13:45:05.272 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
  605. ][2022-06-23 13:45:05.286 +02:00 INF Route matched with {action = "GetInsuranceCompanies", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO]]] GetInsuranceCompanies() on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  606. ][2022-06-23 13:45:05.390 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  607. ][2022-06-23 13:45:05.560 +02:00 INF Executed DbCommand (11ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  608. SELECT [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
  609. FROM [InsuranceCompanies] AS [i]
  610. ][2022-06-23 13:45:05.639 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
  611. ][2022-06-23 13:45:05.654 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 364.5711ms
  612. ][2022-06-23 13:45:05.655 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
  613. ][2022-06-23 13:45:05.657 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - - - 200 - application/json;+charset=utf-8 392.8952ms
  614. ][2022-06-23 13:45:31.613 +02:00 INF Request starting HTTP/1.1 PUT http://localhost:5116/v1.0/insuranceCompanies/4 application/json 203
  615. ][2022-06-23 13:45:31.613 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.UpdateInsuranceCompany (Diligent.WebAPI.Host)'
  616. ][2022-06-23 13:45:31.626 +02:00 INF Route matched with {action = "UpdateInsuranceCompany", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] UpdateInsuranceCompany(Int64, Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanySaveResource) on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  617. ][2022-06-23 13:45:31.689 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  618. ][2022-06-23 13:45:31.772 +02:00 INF Executed DbCommand (17ms) [Parameters=[@__p_0='4'], CommandType='"Text"', CommandTimeout='30']
  619. SELECT TOP(1) [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
  620. FROM [InsuranceCompanies] AS [i]
  621. WHERE [i].[Id] = @__p_0
  622. ][2022-06-23 13:45:31.851 +02:00 INF Executed DbCommand (3ms) [Parameters=[@p1='4', @p0='VIDI PA NE PRORADI' (Nullable = false) (Size = 4000)], CommandType='"Text"', CommandTimeout='30']
  623. SET NOCOUNT ON;
  624. UPDATE [InsuranceCompanies] SET [Name] = @p0
  625. WHERE [Id] = @p1;
  626. SELECT @@ROWCOUNT;
  627. ][2022-06-23 13:45:31.873 +02:00 INF Executing OkObjectResult, writing value of type 'System.String'.
  628. ][2022-06-23 13:45:31.874 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.UpdateInsuranceCompany (Diligent.WebAPI.Host) in 247.1654ms
  629. ][2022-06-23 13:45:31.874 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.UpdateInsuranceCompany (Diligent.WebAPI.Host)'
  630. ][2022-06-23 13:45:31.874 +02:00 INF Request finished HTTP/1.1 PUT http://localhost:5116/v1.0/insuranceCompanies/4 application/json 203 - 200 - text/plain;+charset=utf-8 260.8648ms
  631. ][2022-06-23 13:45:38.173 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
  632. ][2022-06-23 13:45:38.174 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
  633. ][2022-06-23 13:45:38.174 +02:00 INF Route matched with {action = "GetInsuranceCompanies", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO]]] GetInsuranceCompanies() on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  634. ][2022-06-23 13:45:38.176 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  635. ][2022-06-23 13:45:38.179 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  636. SELECT [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
  637. FROM [InsuranceCompanies] AS [i]
  638. ][2022-06-23 13:45:38.180 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
  639. ][2022-06-23 13:45:38.180 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 6.1738ms
  640. ][2022-06-23 13:45:38.180 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
  641. ][2022-06-23 13:45:38.180 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - - - 200 - application/json;+charset=utf-8 6.8129ms
  642. ][2022-06-23 14:29:10.019 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  643. ][2022-06-23 14:29:10.087 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  644. ][2022-06-23 14:29:10.223 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  645. ][2022-06-23 14:29:10.975 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  646. SELECT 1
  647. ][2022-06-23 14:29:10.996 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  648. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  649. ][2022-06-23 14:29:11.016 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  650. SELECT [MigrationId], [ProductVersion]
  651. FROM [__EFMigrationsHistory]
  652. ORDER BY [MigrationId];
  653. ][2022-06-23 14:29:11.134 +02:00 INF Now listening on: http://localhost:5116
  654. ][2022-06-23 14:29:11.137 +02:00 INF Application started. Press Ctrl+C to shut down.
  655. ][2022-06-23 14:29:11.137 +02:00 INF Hosting environment: Development
  656. ][2022-06-23 14:29:11.137 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
  657. ][2022-06-23 14:29:12.445 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
  658. ][2022-06-23 14:29:12.516 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 404 0 - 73.5684ms
  659. ][2022-06-23 14:31:36.673 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  660. ][2022-06-23 14:31:36.739 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  661. ][2022-06-23 14:31:36.868 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  662. ][2022-06-23 14:31:37.135 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  663. SELECT 1
  664. ][2022-06-23 14:31:37.156 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  665. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  666. ][2022-06-23 14:31:37.176 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  667. SELECT [MigrationId], [ProductVersion]
  668. FROM [__EFMigrationsHistory]
  669. ORDER BY [MigrationId];
  670. ][2022-06-23 14:31:37.272 +02:00 INF Now listening on: http://localhost:5116
  671. ][2022-06-23 14:31:37.275 +02:00 INF Application started. Press Ctrl+C to shut down.
  672. ][2022-06-23 14:31:37.275 +02:00 INF Hosting environment: Development
  673. ][2022-06-23 14:31:37.275 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
  674. ][2022-06-23 14:31:42.355 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
  675. ][2022-06-23 14:31:42.523 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
  676. ][2022-06-23 14:31:42.523 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
  677. ][2022-06-23 14:31:42.525 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.8802ms
  678. ][2022-06-23 14:31:42.525 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 173.4602ms
  679. ][2022-06-23 14:31:42.562 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 38.8656ms
  680. ][2022-06-23 14:31:42.631 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
  681. ][2022-06-23 14:31:42.706 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 74.5782ms
  682. ][2022-06-23 14:31:51.423 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers - -
  683. ][2022-06-23 14:31:51.434 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
  684. ][2022-06-23 14:31:51.450 +02:00 INF Route matched with {action = "GetInsurers", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse]]] GetInsurers() on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  685. ][2022-06-23 14:31:51.547 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  686. ][2022-06-23 14:31:51.838 +02:00 INF Executed DbCommand (11ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  687. SELECT [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  688. FROM [Insurers] AS [i]
  689. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  690. ][2022-06-23 14:31:51.945 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
  691. ][2022-06-23 14:31:51.960 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host) in 505.2036ms
  692. ][2022-06-23 14:31:51.960 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
  693. ][2022-06-23 14:31:51.963 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insurers - - - 200 - application/json;+charset=utf-8 540.1811ms
  694. ][2022-06-23 14:45:27.746 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  695. ][2022-06-23 14:45:27.813 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  696. ][2022-06-23 14:45:27.938 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  697. ][2022-06-23 14:45:28.216 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  698. SELECT 1
  699. ][2022-06-23 14:45:28.239 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  700. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  701. ][2022-06-23 14:45:28.261 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  702. SELECT [MigrationId], [ProductVersion]
  703. FROM [__EFMigrationsHistory]
  704. ORDER BY [MigrationId];
  705. ][2022-06-23 14:45:28.334 +02:00 INF Now listening on: http://localhost:5116
  706. ][2022-06-23 14:45:28.336 +02:00 INF Application started. Press Ctrl+C to shut down.
  707. ][2022-06-23 14:45:28.337 +02:00 INF Hosting environment: Development
  708. ][2022-06-23 14:45:28.337 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
  709. ][2022-06-23 14:45:33.111 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
  710. ][2022-06-23 14:45:33.259 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
  711. ][2022-06-23 14:45:33.262 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
  712. ][2022-06-23 14:45:33.264 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.5082ms
  713. ][2022-06-23 14:45:33.265 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 157.0646ms
  714. ][2022-06-23 14:45:33.282 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 23.3341ms
  715. ][2022-06-23 14:45:33.472 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
  716. ][2022-06-23 14:45:33.546 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 74.1807ms
  717. ][2022-06-23 14:45:43.245 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers/10002 - -
  718. ][2022-06-23 14:45:43.256 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
  719. ][2022-06-23 14:45:43.278 +02:00 INF Route matched with {action = "GetInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse]] GetInsurer(Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  720. ][2022-06-23 14:45:43.379 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  721. ][2022-06-23 14:45:43.658 +02:00 INF Executed DbCommand (25ms) [Parameters=[@__id_0='10002'], CommandType='"Text"', CommandTimeout='30']
  722. SELECT TOP(1) [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  723. FROM [Insurers] AS [i]
  724. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  725. WHERE [i].[Id] = @__id_0
  726. ][2022-06-23 14:45:43.765 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
  727. ][2022-06-23 14:45:43.780 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host) in 497.1806ms
  728. ][2022-06-23 14:45:43.781 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
  729. ][2022-06-23 14:45:43.784 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insurers/10002 - - - 200 - application/json;+charset=utf-8 539.5685ms
  730. ][2022-06-23 14:45:51.268 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers/1000222 - -
  731. ][2022-06-23 14:45:51.268 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
  732. ][2022-06-23 14:45:51.268 +02:00 INF Route matched with {action = "GetInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse]] GetInsurer(Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  733. ][2022-06-23 14:45:51.309 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  734. ][2022-06-23 14:45:51.316 +02:00 INF Executed DbCommand (3ms) [Parameters=[@__id_0='1000222'], CommandType='"Text"', CommandTimeout='30']
  735. SELECT TOP(1) [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  736. FROM [Insurers] AS [i]
  737. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  738. WHERE [i].[Id] = @__id_0
  739. ][2022-06-23 14:45:51.317 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
  740. ][2022-06-23 14:45:51.317 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host) in 48.3865ms
  741. ][2022-06-23 14:45:51.317 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
  742. ][2022-06-23 14:45:51.317 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insurers/1000222 - - - 200 - application/json;+charset=utf-8 49.3056ms
  743. ][2022-06-23 14:46:00.432 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers/1000222123123 - -
  744. ][2022-06-23 14:46:00.432 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
  745. ][2022-06-23 14:46:00.432 +02:00 INF Route matched with {action = "GetInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse]] GetInsurer(Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  746. ][2022-06-23 14:46:00.435 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  747. ][2022-06-23 14:46:00.438 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__id_0='1000222123123'], CommandType='"Text"', CommandTimeout='30']
  748. SELECT TOP(1) [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  749. FROM [Insurers] AS [i]
  750. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  751. WHERE [i].[Id] = @__id_0
  752. ][2022-06-23 14:46:00.439 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
  753. ][2022-06-23 14:46:00.439 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host) in 6.7576ms
  754. ][2022-06-23 14:46:00.439 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
  755. ][2022-06-23 14:46:00.439 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insurers/1000222123123 - - - 200 - application/json;+charset=utf-8 7.2534ms
  756. ][2022-06-23 14:46:14.562 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/123213123 - -
  757. ][2022-06-23 14:46:14.562 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
  758. ][2022-06-23 14:46:14.565 +02:00 INF Route matched with {action = "GetInsuranceCompany", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Diligent.WebAPI.Data.Entities.InsuranceCompany] GetInsuranceCompany(Int64) on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  759. ][2022-06-23 14:46:14.568 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  760. ][2022-06-23 14:46:14.579 +02:00 INF Executed DbCommand (3ms) [Parameters=[@__p_0='123213123'], CommandType='"Text"', CommandTimeout='30']
  761. SELECT TOP(1) [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
  762. FROM [InsuranceCompanies] AS [i]
  763. WHERE [i].[Id] = @__p_0
  764. ][2022-06-23 14:46:14.670 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host) in 105.7503ms
  765. ][2022-06-23 14:46:14.671 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
  766. ][2022-06-23 14:46:14.755 +02:00 ERR Insurance company with ID 123213123 has not been found.
  767. ][2022-06-23 14:46:14.756 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/123213123 - - - 404 - application/json 194.4280ms
  768. ][2022-06-23 14:47:00.173 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  769. ][2022-06-23 14:47:00.241 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  770. ][2022-06-23 14:47:00.366 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  771. ][2022-06-23 14:47:00.634 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  772. SELECT 1
  773. ][2022-06-23 14:47:00.655 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  774. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  775. ][2022-06-23 14:47:00.674 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  776. SELECT [MigrationId], [ProductVersion]
  777. FROM [__EFMigrationsHistory]
  778. ORDER BY [MigrationId];
  779. ][2022-06-23 14:47:00.741 +02:00 INF Now listening on: http://localhost:5116
  780. ][2022-06-23 14:47:00.743 +02:00 INF Application started. Press Ctrl+C to shut down.
  781. ][2022-06-23 14:47:00.744 +02:00 INF Hosting environment: Development
  782. ][2022-06-23 14:47:00.744 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
  783. ][2022-06-23 14:47:02.497 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
  784. ][2022-06-23 14:47:02.640 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
  785. ][2022-06-23 14:47:02.640 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
  786. ][2022-06-23 14:47:02.642 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.5128ms
  787. ][2022-06-23 14:47:02.647 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 153.1668ms
  788. ][2022-06-23 14:47:02.666 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 26.1119ms
  789. ][2022-06-23 14:47:02.851 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
  790. ][2022-06-23 14:47:02.923 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 72.1723ms
  791. ][2022-06-23 14:47:14.342 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers/10002030 - -
  792. ][2022-06-23 14:47:14.351 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
  793. ][2022-06-23 14:47:14.375 +02:00 INF Route matched with {action = "GetInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse]] GetInsurer(Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  794. ][2022-06-23 14:47:14.480 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  795. ][2022-06-23 14:47:14.761 +02:00 INF Executed DbCommand (26ms) [Parameters=[@__id_0='10002030'], CommandType='"Text"', CommandTimeout='30']
  796. SELECT TOP(1) [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  797. FROM [Insurers] AS [i]
  798. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  799. WHERE [i].[Id] = @__id_0
  800. ][2022-06-23 14:47:14.776 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
  801. ][2022-06-23 14:47:14.789 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host) in 409.4339ms
  802. ][2022-06-23 14:47:14.789 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
  803. ][2022-06-23 14:47:14.792 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insurers/10002030 - - - 200 - application/json;+charset=utf-8 450.3633ms
  804. ][2022-06-23 14:47:44.228 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurancePolicies/1020302103123 - -
  805. ][2022-06-23 14:47:44.228 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicy (Diligent.WebAPI.Host)'
  806. ][2022-06-23 14:47:44.232 +02:00 INF Route matched with {action = "GetInsurancePolicy", controller = "InsurancePolicies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.InsurancePolicyDTOs.InsurancePolicyReadDTO]] GetInsurancePolicy(Int64) on controller Diligent.WebAPI.Host.Controllers.InsurancePoliciesController (Diligent.WebAPI.Host).
  807. ][2022-06-23 14:47:44.278 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  808. ][2022-06-23 14:47:44.292 +02:00 INF Executed DbCommand (4ms) [Parameters=[@__id_0='1020302103123'], CommandType='"Text"', CommandTimeout='30']
  809. SELECT TOP(1) [i].[Id], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[EndDate], [i].[InsurerId], [i].[Premium], [i].[StartDate], [i].[Type], [i].[UpdatedAtUtc], [i0].[Id], [i0].[Address], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DateOfBirth], [i0].[DeletedAtUtc], [i0].[Email], [i0].[FirstName], [i0].[InsuranceCompanyId], [i0].[LastName], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc], [i1].[Id], [i1].[City], [i1].[Country], [i1].[CreatedAtUtc], [i1].[DeletedAtUtc], [i1].[Fax], [i1].[LegalAddress], [i1].[LegalEmail], [i1].[Name], [i1].[PhoneNumber], [i1].[PostalCode], [i1].[UpdatedAtUtc]
  810. FROM [InsurancePolicies] AS [i]
  811. INNER JOIN [Insurers] AS [i0] ON [i].[InsurerId] = [i0].[Id]
  812. INNER JOIN [InsuranceCompanies] AS [i1] ON [i0].[InsuranceCompanyId] = [i1].[Id]
  813. WHERE [i].[Id] = @__id_0
  814. ][2022-06-23 14:47:44.293 +02:00 INF Executing BadRequestObjectResult, writing value of type 'System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'.
  815. ][2022-06-23 14:47:44.294 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicy (Diligent.WebAPI.Host) in 61.1901ms
  816. ][2022-06-23 14:47:44.294 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicy (Diligent.WebAPI.Host)'
  817. ][2022-06-23 14:47:44.294 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insurancePolicies/1020302103123 - - - 400 - application/json;+charset=utf-8 65.8716ms
  818. ][2022-06-23 14:49:08.517 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  819. ][2022-06-23 14:49:08.583 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  820. ][2022-06-23 14:49:08.710 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  821. ][2022-06-23 14:49:08.973 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  822. SELECT 1
  823. ][2022-06-23 14:49:08.994 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  824. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  825. ][2022-06-23 14:49:09.015 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  826. SELECT [MigrationId], [ProductVersion]
  827. FROM [__EFMigrationsHistory]
  828. ORDER BY [MigrationId];
  829. ][2022-06-23 14:49:09.082 +02:00 INF Now listening on: http://localhost:5116
  830. ][2022-06-23 14:49:09.085 +02:00 INF Application started. Press Ctrl+C to shut down.
  831. ][2022-06-23 14:49:09.085 +02:00 INF Hosting environment: Development
  832. ][2022-06-23 14:49:09.085 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
  833. ][2022-06-23 14:49:15.582 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurancePolicies/1020302103123 - -
  834. ][2022-06-23 14:49:15.629 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicy (Diligent.WebAPI.Host)'
  835. ][2022-06-23 14:49:15.652 +02:00 INF Route matched with {action = "GetInsurancePolicy", controller = "InsurancePolicies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.InsurancePolicyDTOs.InsurancePolicyReadDTO]] GetInsurancePolicy(Int64) on controller Diligent.WebAPI.Host.Controllers.InsurancePoliciesController (Diligent.WebAPI.Host).
  836. ][2022-06-23 14:49:15.774 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  837. ][2022-06-23 14:49:16.053 +02:00 INF Executed DbCommand (25ms) [Parameters=[@__id_0='1020302103123'], CommandType='"Text"', CommandTimeout='30']
  838. SELECT TOP(1) [i].[Id], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[EndDate], [i].[InsurerId], [i].[Premium], [i].[StartDate], [i].[Type], [i].[UpdatedAtUtc], [i0].[Id], [i0].[Address], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DateOfBirth], [i0].[DeletedAtUtc], [i0].[Email], [i0].[FirstName], [i0].[InsuranceCompanyId], [i0].[LastName], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc], [i1].[Id], [i1].[City], [i1].[Country], [i1].[CreatedAtUtc], [i1].[DeletedAtUtc], [i1].[Fax], [i1].[LegalAddress], [i1].[LegalEmail], [i1].[Name], [i1].[PhoneNumber], [i1].[PostalCode], [i1].[UpdatedAtUtc]
  839. FROM [InsurancePolicies] AS [i]
  840. INNER JOIN [Insurers] AS [i0] ON [i].[InsurerId] = [i0].[Id]
  841. INNER JOIN [InsuranceCompanies] AS [i1] ON [i0].[InsuranceCompanyId] = [i1].[Id]
  842. WHERE [i].[Id] = @__id_0
  843. ][2022-06-23 14:49:16.072 +02:00 INF Executing BadRequestObjectResult, writing value of type 'System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'.
  844. ][2022-06-23 14:49:16.090 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicy (Diligent.WebAPI.Host) in 434.4616ms
  845. ][2022-06-23 14:49:16.091 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicy (Diligent.WebAPI.Host)'
  846. ][2022-06-23 14:49:16.096 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insurancePolicies/1020302103123 - - - 400 - application/json;+charset=utf-8 516.1534ms
  847. ][2022-06-23 14:49:20.508 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers/10002030 - -
  848. ][2022-06-23 14:49:20.509 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
  849. ][2022-06-23 14:49:20.513 +02:00 INF Route matched with {action = "GetInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse]] GetInsurer(Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  850. ][2022-06-23 14:49:20.554 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  851. ][2022-06-23 14:49:20.565 +02:00 INF Executed DbCommand (3ms) [Parameters=[@__id_0='10002030'], CommandType='"Text"', CommandTimeout='30']
  852. SELECT TOP(1) [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  853. FROM [Insurers] AS [i]
  854. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  855. WHERE [i].[Id] = @__id_0
  856. ][2022-06-23 14:49:20.656 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host) in 142.8904ms
  857. ][2022-06-23 14:49:20.656 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
  858. ][2022-06-23 14:49:20.744 +02:00 ERR Insurer with ID 10002030 has not been found.
  859. ][2022-06-23 14:49:20.748 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insurers/10002030 - - - 404 - application/json 240.7368ms
  860. ][2022-06-23 15:10:55.832 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  861. ][2022-06-23 15:10:55.899 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  862. ][2022-06-23 15:10:56.029 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  863. ][2022-06-23 15:10:56.320 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  864. SELECT 1
  865. ][2022-06-23 15:10:56.342 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  866. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  867. ][2022-06-23 15:10:56.362 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  868. SELECT [MigrationId], [ProductVersion]
  869. FROM [__EFMigrationsHistory]
  870. ORDER BY [MigrationId];
  871. ][2022-06-23 15:10:56.437 +02:00 INF Now listening on: http://localhost:5116
  872. ][2022-06-23 15:10:56.440 +02:00 INF Application started. Press Ctrl+C to shut down.
  873. ][2022-06-23 15:10:56.440 +02:00 INF Hosting environment: Development
  874. ][2022-06-23 15:10:56.440 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
  875. ][2022-06-23 15:11:00.149 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
  876. ][2022-06-23 15:11:00.295 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
  877. ][2022-06-23 15:11:00.295 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
  878. ][2022-06-23 15:11:00.297 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.7048ms
  879. ][2022-06-23 15:11:00.298 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 151.3795ms
  880. ][2022-06-23 15:11:00.317 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 22.0772ms
  881. ][2022-06-23 15:11:00.481 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
  882. ][2022-06-23 15:11:00.557 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 75.9359ms
  883. ][2022-06-23 15:11:10.239 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 263
  884. ][2022-06-23 15:11:10.248 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  885. ][2022-06-23 15:11:10.271 +02:00 INF Route matched with {action = "CreateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  886. ][2022-06-23 15:11:10.398 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  887. ][2022-06-23 15:11:10.609 +02:00 INF Executed DbCommand (44ms) [Parameters=[@p0='string' (Nullable = false) (Size = 4000), @p1='string' (Nullable = false) (Size = 4000), @p2='string' (Nullable = false) (Size = 4000), @p3='0001-01-01T00:00:00.0000000', @p4='2022-06-23T13:11:04.5960000Z', @p5=NULL (DbType = DateTime2), @p6='string' (Nullable = false) (Size = 4000), @p7='string' (Nullable = false) (Size = 4000), @p8='1', @p9='string' (Nullable = false) (Size = 4000), @p10='string' (Nullable = false) (Size = 4000), @p11='string' (Nullable = false) (Size = 4000), @p12=NULL (DbType = DateTime2)], CommandType='"Text"', CommandTimeout='30']
  888. SET NOCOUNT ON;
  889. INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
  890. VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
  891. SELECT [Id]
  892. FROM [Insurers]
  893. WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
  894. ][2022-06-23 15:11:10.670 +02:00 INF Executing CreatedResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
  895. ][2022-06-23 15:11:10.680 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host) in 405.0936ms
  896. ][2022-06-23 15:11:10.681 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  897. ][2022-06-23 15:11:10.683 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 263 - 201 - application/json;+charset=utf-8 444.5150ms
  898. ][2022-06-23 15:11:25.586 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 263
  899. ][2022-06-23 15:11:25.586 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  900. ][2022-06-23 15:11:25.587 +02:00 INF Route matched with {action = "CreateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  901. ][2022-06-23 15:11:25.627 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  902. ][2022-06-23 15:11:25.633 +02:00 INF Executed DbCommand (2ms) [Parameters=[@p0='string' (Nullable = false) (Size = 4000), @p1='string' (Nullable = false) (Size = 4000), @p2='string' (Nullable = false) (Size = 4000), @p3='0001-01-01T00:00:00.0000000', @p4='2022-06-23T13:11:04.5960000Z', @p5=NULL (DbType = DateTime2), @p6='string' (Nullable = false) (Size = 4000), @p7='string' (Nullable = false) (Size = 4000), @p8='1', @p9='string' (Nullable = false) (Size = 4000), @p10='string' (Nullable = false) (Size = 4000), @p11='string' (Nullable = false) (Size = 4000), @p12=NULL (DbType = DateTime2)], CommandType='"Text"', CommandTimeout='30']
  903. SET NOCOUNT ON;
  904. INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
  905. VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
  906. SELECT [Id]
  907. FROM [Insurers]
  908. WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
  909. ][2022-06-23 15:11:25.660 +02:00 INF Executing CreatedResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
  910. ][2022-06-23 15:11:25.660 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host) in 73.5647ms
  911. ][2022-06-23 15:11:25.660 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  912. ][2022-06-23 15:11:25.660 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 263 - 201 - application/json;+charset=utf-8 74.4446ms
  913. ][2022-06-23 15:11:37.357 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 264
  914. ][2022-06-23 15:11:37.357 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  915. ][2022-06-23 15:11:37.357 +02:00 INF Route matched with {action = "CreateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  916. ][2022-06-23 15:11:37.360 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  917. ][2022-06-23 15:11:37.366 +02:00 INF Executed DbCommand (2ms) [Parameters=[@p0='string' (Nullable = false) (Size = 4000), @p1='string' (Nullable = false) (Size = 4000), @p2='string' (Nullable = false) (Size = 4000), @p3='0001-01-01T00:00:00.0000000', @p4='2022-06-23T13:11:04.5960000Z', @p5=NULL (DbType = DateTime2), @p6='string' (Nullable = false) (Size = 4000), @p7='Erminnn' (Nullable = false) (Size = 4000), @p8='1', @p9='string' (Nullable = false) (Size = 4000), @p10='string' (Nullable = false) (Size = 4000), @p11='string' (Nullable = false) (Size = 4000), @p12=NULL (DbType = DateTime2)], CommandType='"Text"', CommandTimeout='30']
  918. SET NOCOUNT ON;
  919. INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
  920. VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
  921. SELECT [Id]
  922. FROM [Insurers]
  923. WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
  924. ][2022-06-23 15:11:37.369 +02:00 INF Executing CreatedResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
  925. ][2022-06-23 15:11:37.369 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host) in 11.7397ms
  926. ][2022-06-23 15:11:37.369 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  927. ][2022-06-23 15:11:37.369 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 264 - 201 - application/json;+charset=utf-8 12.2031ms
  928. ][2022-06-23 15:11:49.325 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers/0 - -
  929. ][2022-06-23 15:11:49.326 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
  930. ][2022-06-23 15:11:49.329 +02:00 INF Route matched with {action = "GetInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse]] GetInsurer(Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  931. ][2022-06-23 15:11:49.336 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  932. ][2022-06-23 15:11:49.590 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__id_0='0'], CommandType='"Text"', CommandTimeout='30']
  933. SELECT TOP(1) [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  934. FROM [Insurers] AS [i]
  935. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  936. WHERE [i].[Id] = @__id_0
  937. ][2022-06-23 15:11:49.686 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host) in 356.5287ms
  938. ][2022-06-23 15:11:49.686 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
  939. ][2022-06-23 15:11:49.773 +02:00 ERR Insurer with ID 0 has not been found.
  940. ][2022-06-23 15:11:49.774 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insurers/0 - - - 404 - application/json 448.7744ms
  941. ][2022-06-23 15:11:58.901 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers - -
  942. ][2022-06-23 15:11:58.901 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
  943. ][2022-06-23 15:11:58.903 +02:00 INF Route matched with {action = "GetInsurers", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse]]] GetInsurers() on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  944. ][2022-06-23 15:11:58.906 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  945. ][2022-06-23 15:11:58.917 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  946. SELECT [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  947. FROM [Insurers] AS [i]
  948. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  949. ][2022-06-23 15:11:58.955 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
  950. ][2022-06-23 15:11:58.959 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host) in 55.482ms
  951. ][2022-06-23 15:11:58.959 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
  952. ][2022-06-23 15:11:58.959 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insurers - - - 200 - application/json;+charset=utf-8 57.7497ms
  953. ][2022-06-23 15:12:32.310 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 264
  954. ][2022-06-23 15:12:32.311 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  955. ][2022-06-23 15:12:32.311 +02:00 INF Route matched with {action = "CreateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  956. ][2022-06-23 15:12:32.311 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  957. ][2022-06-23 15:12:32.324 +02:00 ERR Failed executing DbCommand (9ms) [Parameters=[@p0='string' (Nullable = false) (Size = 4000), @p1='string' (Nullable = false) (Size = 4000), @p2='string' (Nullable = false) (Size = 4000), @p3='0001-01-01T00:00:00.0000000', @p4='2022-06-23T13:11:04.5960000Z', @p5=NULL (DbType = DateTime2), @p6='string' (Nullable = false) (Size = 4000), @p7='Erminnn' (Nullable = false) (Size = 4000), @p8='0', @p9='string' (Nullable = false) (Size = 4000), @p10='string' (Nullable = false) (Size = 4000), @p11='string' (Nullable = false) (Size = 4000), @p12=NULL (DbType = DateTime2)], CommandType='"Text"', CommandTimeout='30']
  958. SET NOCOUNT ON;
  959. INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
  960. VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
  961. SELECT [Id]
  962. FROM [Insurers]
  963. WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
  964. ][2022-06-23 15:12:32.337 +02:00 ERR An exception occurred in the database while saving changes for context type 'Diligent.WebAPI.Data.DatabaseContext'.
  965. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
  966. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Insurers_InsuranceCompanies_InsuranceCompanyId". The conflict occurred in database "WebApiDB", table "dbo.InsuranceCompanies", column 'Id'.
  967. The statement has been terminated.
  968. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
  969. at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
  970. at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  971. --- End of stack trace from previous location ---
  972. at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
  973. --- End of stack trace from previous location ---
  974. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  975. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  976. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  977. ClientConnectionId:ce0fdaf9-0559-4b5c-831b-b1d86e200b6f
  978. Error Number:547,State:0,Class:16
  979. --- End of inner exception stack trace ---
  980. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  981. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  982. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  983. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  984. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
  985. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  986. at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
  987. at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  988. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
  989. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Insurers_InsuranceCompanies_InsuranceCompanyId". The conflict occurred in database "WebApiDB", table "dbo.InsuranceCompanies", column 'Id'.
  990. The statement has been terminated.
  991. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
  992. at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
  993. at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  994. --- End of stack trace from previous location ---
  995. at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
  996. --- End of stack trace from previous location ---
  997. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  998. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  999. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1000. ClientConnectionId:ce0fdaf9-0559-4b5c-831b-b1d86e200b6f
  1001. Error Number:547,State:0,Class:16
  1002. --- End of inner exception stack trace ---
  1003. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1004. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1005. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1006. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1007. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
  1008. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1009. at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
  1010. at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1011. ][2022-06-23 15:12:32.465 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host) in 154.0282ms
  1012. ][2022-06-23 15:12:32.465 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  1013. ][2022-06-23 15:12:32.546 +02:00 ERR An error occurred while saving the entity changes. See the inner exception for details.
  1014. ][2022-06-23 15:12:32.546 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 264 - 500 - application/json 235.6538ms
  1015. ][2022-06-23 15:12:42.546 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 277
  1016. ][2022-06-23 15:12:42.547 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  1017. ][2022-06-23 15:12:42.547 +02:00 INF Route matched with {action = "CreateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1018. ][2022-06-23 15:12:42.547 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1019. ][2022-06-23 15:12:42.553 +02:00 ERR Failed executing DbCommand (3ms) [Parameters=[@p0='string' (Nullable = false) (Size = 4000), @p1='string' (Nullable = false) (Size = 4000), @p2='string' (Nullable = false) (Size = 4000), @p3='0001-01-01T00:00:00.0000000', @p4='2022-06-23T13:11:04.5960000Z', @p5=NULL (DbType = DateTime2), @p6='string' (Nullable = false) (Size = 4000), @p7='Erminnn' (Nullable = false) (Size = 4000), @p8='12031231023123', @p9='string' (Nullable = false) (Size = 4000), @p10='string' (Nullable = false) (Size = 4000), @p11='string' (Nullable = false) (Size = 4000), @p12=NULL (DbType = DateTime2)], CommandType='"Text"', CommandTimeout='30']
  1020. SET NOCOUNT ON;
  1021. INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
  1022. VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
  1023. SELECT [Id]
  1024. FROM [Insurers]
  1025. WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
  1026. ][2022-06-23 15:12:42.557 +02:00 ERR An exception occurred in the database while saving changes for context type 'Diligent.WebAPI.Data.DatabaseContext'.
  1027. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
  1028. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Insurers_InsuranceCompanies_InsuranceCompanyId". The conflict occurred in database "WebApiDB", table "dbo.InsuranceCompanies", column 'Id'.
  1029. The statement has been terminated.
  1030. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
  1031. at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
  1032. at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  1033. --- End of stack trace from previous location ---
  1034. at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
  1035. --- End of stack trace from previous location ---
  1036. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1037. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1038. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1039. ClientConnectionId:ce0fdaf9-0559-4b5c-831b-b1d86e200b6f
  1040. Error Number:547,State:0,Class:16
  1041. --- End of inner exception stack trace ---
  1042. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1043. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1044. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1045. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1046. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
  1047. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1048. at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
  1049. at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1050. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
  1051. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Insurers_InsuranceCompanies_InsuranceCompanyId". The conflict occurred in database "WebApiDB", table "dbo.InsuranceCompanies", column 'Id'.
  1052. The statement has been terminated.
  1053. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
  1054. at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
  1055. at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  1056. --- End of stack trace from previous location ---
  1057. at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
  1058. --- End of stack trace from previous location ---
  1059. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1060. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1061. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1062. ClientConnectionId:ce0fdaf9-0559-4b5c-831b-b1d86e200b6f
  1063. Error Number:547,State:0,Class:16
  1064. --- End of inner exception stack trace ---
  1065. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1066. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1067. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1068. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1069. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
  1070. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1071. at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
  1072. at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1073. ][2022-06-23 15:12:42.675 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host) in 128.6185ms
  1074. ][2022-06-23 15:12:42.676 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  1075. ][2022-06-23 15:12:42.780 +02:00 ERR An error occurred while saving the entity changes. See the inner exception for details.
  1076. ][2022-06-23 15:12:42.780 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 277 - 500 - application/json 233.8448ms
  1077. ][2022-06-23 15:13:36.974 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  1078. ][2022-06-23 15:13:37.043 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  1079. ][2022-06-23 15:13:37.169 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1080. ][2022-06-23 15:13:37.436 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1081. SELECT 1
  1082. ][2022-06-23 15:13:37.458 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1083. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  1084. ][2022-06-23 15:13:37.478 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1085. SELECT [MigrationId], [ProductVersion]
  1086. FROM [__EFMigrationsHistory]
  1087. ORDER BY [MigrationId];
  1088. ][2022-06-23 15:13:37.544 +02:00 INF Now listening on: http://localhost:5116
  1089. ][2022-06-23 15:13:37.547 +02:00 INF Application started. Press Ctrl+C to shut down.
  1090. ][2022-06-23 15:13:37.547 +02:00 INF Hosting environment: Development
  1091. ][2022-06-23 15:13:37.547 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
  1092. ][2022-06-23 15:13:41.882 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 277
  1093. ][2022-06-23 15:13:41.925 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  1094. ][2022-06-23 15:13:41.945 +02:00 INF Route matched with {action = "CreateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1095. ][2022-06-23 15:13:42.070 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1096. ][2022-06-23 15:13:42.266 +02:00 ERR Failed executing DbCommand (33ms) [Parameters=[@p0='string' (Nullable = false) (Size = 4000), @p1='string' (Nullable = false) (Size = 4000), @p2='string' (Nullable = false) (Size = 4000), @p3='0001-01-01T00:00:00.0000000', @p4='2022-06-23T13:11:04.5960000Z', @p5=NULL (DbType = DateTime2), @p6='string' (Nullable = false) (Size = 4000), @p7='Erminnn' (Nullable = false) (Size = 4000), @p8='12031231023123', @p9='string' (Nullable = false) (Size = 4000), @p10='string' (Nullable = false) (Size = 4000), @p11='string' (Nullable = false) (Size = 4000), @p12=NULL (DbType = DateTime2)], CommandType='"Text"', CommandTimeout='30']
  1097. SET NOCOUNT ON;
  1098. INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
  1099. VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
  1100. SELECT [Id]
  1101. FROM [Insurers]
  1102. WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
  1103. ][2022-06-23 15:13:42.302 +02:00 ERR An exception occurred in the database while saving changes for context type 'Diligent.WebAPI.Data.DatabaseContext'.
  1104. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
  1105. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Insurers_InsuranceCompanies_InsuranceCompanyId". The conflict occurred in database "WebApiDB", table "dbo.InsuranceCompanies", column 'Id'.
  1106. The statement has been terminated.
  1107. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
  1108. at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
  1109. at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
  1110. at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  1111. --- End of stack trace from previous location ---
  1112. at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  1113. at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
  1114. --- End of stack trace from previous location ---
  1115. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1116. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1117. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1118. ClientConnectionId:e6ecec89-4fd4-423f-af25-8247db6575f2
  1119. Error Number:547,State:0,Class:16
  1120. --- End of inner exception stack trace ---
  1121. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1122. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1123. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1124. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1125. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
  1126. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1127. at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
  1128. at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1129. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
  1130. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Insurers_InsuranceCompanies_InsuranceCompanyId". The conflict occurred in database "WebApiDB", table "dbo.InsuranceCompanies", column 'Id'.
  1131. The statement has been terminated.
  1132. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
  1133. at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
  1134. at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
  1135. at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  1136. --- End of stack trace from previous location ---
  1137. at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  1138. at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
  1139. --- End of stack trace from previous location ---
  1140. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1141. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1142. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1143. ClientConnectionId:e6ecec89-4fd4-423f-af25-8247db6575f2
  1144. Error Number:547,State:0,Class:16
  1145. --- End of inner exception stack trace ---
  1146. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1147. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1148. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1149. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1150. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
  1151. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1152. at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
  1153. at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1154. ][2022-06-23 15:13:42.408 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host) in 457.6185ms
  1155. ][2022-06-23 15:13:42.410 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  1156. ][2022-06-23 15:13:42.508 +02:00 ERR An error occurred while saving the entity changes. See the inner exception for details.
  1157. ][2022-06-23 15:13:42.520 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 277 - 500 - application/json 640.2179ms
  1158. ][2022-06-23 15:13:51.077 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 264
  1159. ][2022-06-23 15:13:51.078 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  1160. ][2022-06-23 15:13:51.079 +02:00 INF Route matched with {action = "CreateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1161. ][2022-06-23 15:13:51.118 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1162. ][2022-06-23 15:13:51.124 +02:00 INF Executed DbCommand (2ms) [Parameters=[@p0='string' (Nullable = false) (Size = 4000), @p1='string' (Nullable = false) (Size = 4000), @p2='string' (Nullable = false) (Size = 4000), @p3='0001-01-01T00:00:00.0000000', @p4='2022-06-23T13:11:04.5960000Z', @p5=NULL (DbType = DateTime2), @p6='string' (Nullable = false) (Size = 4000), @p7='Erminnn' (Nullable = false) (Size = 4000), @p8='1', @p9='string' (Nullable = false) (Size = 4000), @p10='string' (Nullable = false) (Size = 4000), @p11='string' (Nullable = false) (Size = 4000), @p12=NULL (DbType = DateTime2)], CommandType='"Text"', CommandTimeout='30']
  1163. SET NOCOUNT ON;
  1164. INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
  1165. VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
  1166. SELECT [Id]
  1167. FROM [Insurers]
  1168. WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
  1169. ][2022-06-23 15:13:51.167 +02:00 INF Executing CreatedResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
  1170. ][2022-06-23 15:13:51.172 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host) in 93.1341ms
  1171. ][2022-06-23 15:13:51.172 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  1172. ][2022-06-23 15:13:51.172 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 264 - 201 - application/json;+charset=utf-8 94.9075ms
  1173. ][2022-06-23 15:16:11.579 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  1174. ][2022-06-23 15:16:11.651 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  1175. ][2022-06-23 15:16:11.784 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1176. ][2022-06-23 15:16:12.051 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1177. SELECT 1
  1178. ][2022-06-23 15:16:12.073 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1179. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  1180. ][2022-06-23 15:16:12.093 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1181. SELECT [MigrationId], [ProductVersion]
  1182. FROM [__EFMigrationsHistory]
  1183. ORDER BY [MigrationId];
  1184. ][2022-06-23 15:16:12.161 +02:00 INF Now listening on: http://localhost:5116
  1185. ][2022-06-23 15:16:12.164 +02:00 INF Application started. Press Ctrl+C to shut down.
  1186. ][2022-06-23 15:16:12.164 +02:00 INF Hosting environment: Development
  1187. ][2022-06-23 15:16:12.164 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
  1188. ][2022-06-23 15:16:13.448 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 264
  1189. ][2022-06-23 15:16:13.497 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  1190. ][2022-06-23 15:16:13.519 +02:00 INF Route matched with {action = "CreateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1191. ][2022-06-23 15:16:18.770 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1192. ][2022-06-23 15:16:18.972 +02:00 INF Executed DbCommand (26ms) [Parameters=[@p0='string' (Nullable = false) (Size = 4000), @p1='string' (Nullable = false) (Size = 4000), @p2='string' (Nullable = false) (Size = 4000), @p3='0001-01-01T00:00:00.0000000', @p4='2022-06-23T13:11:04.5960000Z', @p5=NULL (DbType = DateTime2), @p6='string' (Nullable = false) (Size = 4000), @p7='Erminnn' (Nullable = false) (Size = 4000), @p8='1', @p9='string' (Nullable = false) (Size = 4000), @p10='string' (Nullable = false) (Size = 4000), @p11='string' (Nullable = false) (Size = 4000), @p12=NULL (DbType = DateTime2)], CommandType='"Text"', CommandTimeout='30']
  1193. SET NOCOUNT ON;
  1194. INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
  1195. VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
  1196. SELECT [Id]
  1197. FROM [Insurers]
  1198. WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
  1199. ][2022-06-23 15:19:46.971 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  1200. ][2022-06-23 15:19:47.042 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  1201. ][2022-06-23 15:19:47.175 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1202. ][2022-06-23 15:19:47.456 +02:00 INF Executed DbCommand (17ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1203. SELECT 1
  1204. ][2022-06-23 15:19:47.479 +02:00 INF Executed DbCommand (14ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1205. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  1206. ][2022-06-23 15:19:47.500 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1207. SELECT [MigrationId], [ProductVersion]
  1208. FROM [__EFMigrationsHistory]
  1209. ORDER BY [MigrationId];
  1210. ][2022-06-23 15:19:47.578 +02:00 INF Now listening on: http://localhost:5116
  1211. ][2022-06-23 15:19:47.581 +02:00 INF Application started. Press Ctrl+C to shut down.
  1212. ][2022-06-23 15:19:47.581 +02:00 INF Hosting environment: Development
  1213. ][2022-06-23 15:19:47.581 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
  1214. ][2022-06-23 15:19:47.860 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 264
  1215. ][2022-06-23 15:19:47.905 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  1216. ][2022-06-23 15:19:47.927 +02:00 INF Route matched with {action = "CreateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1217. ][2022-06-23 15:20:02.349 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1218. ][2022-06-23 15:20:02.556 +02:00 INF Executed DbCommand (25ms) [Parameters=[@p0='string' (Nullable = false) (Size = 4000), @p1='string' (Nullable = false) (Size = 4000), @p2='string' (Nullable = false) (Size = 4000), @p3='0001-01-01T00:00:00.0000000', @p4='2022-06-23T13:11:04.5960000Z', @p5=NULL (DbType = DateTime2), @p6='string' (Nullable = false) (Size = 4000), @p7='Erminnn' (Nullable = false) (Size = 4000), @p8='1', @p9='string' (Nullable = false) (Size = 4000), @p10='string' (Nullable = false) (Size = 4000), @p11='string' (Nullable = false) (Size = 4000), @p12=NULL (DbType = DateTime2)], CommandType='"Text"', CommandTimeout='30']
  1219. SET NOCOUNT ON;
  1220. INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
  1221. VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
  1222. SELECT [Id]
  1223. FROM [Insurers]
  1224. WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
  1225. ][2022-06-23 15:23:53.775 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  1226. ][2022-06-23 15:23:53.842 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  1227. ][2022-06-23 15:23:53.968 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1228. ][2022-06-23 15:23:54.231 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1229. SELECT 1
  1230. ][2022-06-23 15:23:54.254 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1231. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  1232. ][2022-06-23 15:23:54.274 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1233. SELECT [MigrationId], [ProductVersion]
  1234. FROM [__EFMigrationsHistory]
  1235. ORDER BY [MigrationId];
  1236. ][2022-06-23 15:23:54.347 +02:00 INF Now listening on: http://localhost:5116
  1237. ][2022-06-23 15:23:54.350 +02:00 INF Application started. Press Ctrl+C to shut down.
  1238. ][2022-06-23 15:23:54.350 +02:00 INF Hosting environment: Development
  1239. ][2022-06-23 15:23:54.350 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
  1240. ][2022-06-23 15:23:57.454 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 264
  1241. ][2022-06-23 15:23:57.499 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  1242. ][2022-06-23 15:23:57.523 +02:00 INF Route matched with {action = "CreateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1243. ][2022-06-23 15:24:41.154 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  1244. ][2022-06-23 15:24:41.220 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  1245. ][2022-06-23 15:24:41.344 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1246. ][2022-06-23 15:24:41.606 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1247. SELECT 1
  1248. ][2022-06-23 15:24:41.627 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1249. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  1250. ][2022-06-23 15:24:41.646 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1251. SELECT [MigrationId], [ProductVersion]
  1252. FROM [__EFMigrationsHistory]
  1253. ORDER BY [MigrationId];
  1254. ][2022-06-23 15:24:41.712 +02:00 INF Now listening on: http://localhost:5116
  1255. ][2022-06-23 15:24:41.715 +02:00 INF Application started. Press Ctrl+C to shut down.
  1256. ][2022-06-23 15:24:41.715 +02:00 INF Hosting environment: Development
  1257. ][2022-06-23 15:24:41.715 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
  1258. ][2022-06-23 15:24:49.446 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 264
  1259. ][2022-06-23 15:24:49.491 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  1260. ][2022-06-23 15:24:49.513 +02:00 INF Route matched with {action = "CreateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1261. ][2022-06-23 15:24:56.532 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1262. ][2022-06-23 15:24:56.731 +02:00 INF Executed DbCommand (25ms) [Parameters=[@p0='string' (Nullable = false) (Size = 4000), @p1='string' (Nullable = false) (Size = 4000), @p2='string' (Nullable = false) (Size = 4000), @p3='0001-01-01T00:00:00.0000000', @p4='2022-06-23T13:11:04.5960000Z', @p5=NULL (DbType = DateTime2), @p6='string' (Nullable = false) (Size = 4000), @p7='Erminnn' (Nullable = false) (Size = 4000), @p8='1', @p9='string' (Nullable = false) (Size = 4000), @p10='string' (Nullable = false) (Size = 4000), @p11='string' (Nullable = false) (Size = 4000), @p12=NULL (DbType = DateTime2)], CommandType='"Text"', CommandTimeout='30']
  1263. SET NOCOUNT ON;
  1264. INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
  1265. VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
  1266. SELECT [Id]
  1267. FROM [Insurers]
  1268. WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
  1269. ][2022-06-23 15:25:41.234 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  1270. ][2022-06-23 15:25:41.299 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  1271. ][2022-06-23 15:25:41.422 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1272. ][2022-06-23 15:25:41.683 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1273. SELECT 1
  1274. ][2022-06-23 15:25:41.705 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1275. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  1276. ][2022-06-23 15:25:41.725 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1277. SELECT [MigrationId], [ProductVersion]
  1278. FROM [__EFMigrationsHistory]
  1279. ORDER BY [MigrationId];
  1280. ][2022-06-23 15:25:41.802 +02:00 INF Now listening on: http://localhost:5116
  1281. ][2022-06-23 15:25:41.805 +02:00 INF Application started. Press Ctrl+C to shut down.
  1282. ][2022-06-23 15:25:41.805 +02:00 INF Hosting environment: Development
  1283. ][2022-06-23 15:25:41.805 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
  1284. ][2022-06-23 15:25:42.876 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 264
  1285. ][2022-06-23 15:25:42.919 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  1286. ][2022-06-23 15:25:42.941 +02:00 INF Route matched with {action = "CreateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1287. ][2022-06-23 15:25:52.344 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1288. ][2022-06-23 15:25:52.556 +02:00 INF Executed DbCommand (25ms) [Parameters=[@p0='string' (Nullable = false) (Size = 4000), @p1='string' (Nullable = false) (Size = 4000), @p2='string' (Nullable = false) (Size = 4000), @p3='0001-01-01T00:00:00.0000000', @p4='2022-06-23T13:11:04.5960000Z', @p5=NULL (DbType = DateTime2), @p6='string' (Nullable = false) (Size = 4000), @p7='Erminnn' (Nullable = false) (Size = 4000), @p8='1', @p9='string' (Nullable = false) (Size = 4000), @p10='string' (Nullable = false) (Size = 4000), @p11='string' (Nullable = false) (Size = 4000), @p12=NULL (DbType = DateTime2)], CommandType='"Text"', CommandTimeout='30']
  1289. SET NOCOUNT ON;
  1290. INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
  1291. VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
  1292. SELECT [Id]
  1293. FROM [Insurers]
  1294. WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
  1295. ][2022-06-23 15:26:09.071 +02:00 INF Executing CreatedResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
  1296. ][2022-06-23 15:26:09.086 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host) in 26141.0465ms
  1297. ][2022-06-23 15:26:09.087 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  1298. ][2022-06-23 15:26:09.093 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 264 - 201 - application/json;+charset=utf-8 26219.1753ms
  1299. ][2022-06-23 15:26:21.299 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 274
  1300. ][2022-06-23 15:26:21.300 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  1301. ][2022-06-23 15:26:21.301 +02:00 INF Route matched with {action = "CreateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1302. ][2022-06-23 15:26:26.016 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1303. ][2022-06-23 15:26:26.041 +02:00 ERR Failed executing DbCommand (21ms) [Parameters=[@p0='string' (Nullable = false) (Size = 4000), @p1='string' (Nullable = false) (Size = 4000), @p2='string' (Nullable = false) (Size = 4000), @p3='0001-01-01T00:00:00.0000000', @p4='2022-06-23T13:11:04.5960000Z', @p5=NULL (DbType = DateTime2), @p6='string' (Nullable = false) (Size = 4000), @p7='Erminnn' (Nullable = false) (Size = 4000), @p8='12213123123', @p9='string' (Nullable = false) (Size = 4000), @p10='string' (Nullable = false) (Size = 4000), @p11='string' (Nullable = false) (Size = 4000), @p12=NULL (DbType = DateTime2)], CommandType='"Text"', CommandTimeout='30']
  1304. SET NOCOUNT ON;
  1305. INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
  1306. VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
  1307. SELECT [Id]
  1308. FROM [Insurers]
  1309. WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
  1310. ][2022-06-23 15:26:26.053 +02:00 ERR An exception occurred in the database while saving changes for context type 'Diligent.WebAPI.Data.DatabaseContext'.
  1311. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
  1312. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Insurers_InsuranceCompanies_InsuranceCompanyId". The conflict occurred in database "WebApiDB", table "dbo.InsuranceCompanies", column 'Id'.
  1313. The statement has been terminated.
  1314. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
  1315. at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
  1316. at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
  1317. at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  1318. --- End of stack trace from previous location ---
  1319. at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
  1320. --- End of stack trace from previous location ---
  1321. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1322. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1323. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1324. ClientConnectionId:b7bc75b1-c0c0-4b5a-b941-cfd9a0b7efa2
  1325. Error Number:547,State:0,Class:16
  1326. --- End of inner exception stack trace ---
  1327. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1328. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1329. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1330. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1331. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
  1332. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1333. at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
  1334. at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1335. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
  1336. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Insurers_InsuranceCompanies_InsuranceCompanyId". The conflict occurred in database "WebApiDB", table "dbo.InsuranceCompanies", column 'Id'.
  1337. The statement has been terminated.
  1338. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
  1339. at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
  1340. at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
  1341. at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  1342. --- End of stack trace from previous location ---
  1343. at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
  1344. --- End of stack trace from previous location ---
  1345. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1346. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1347. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1348. ClientConnectionId:b7bc75b1-c0c0-4b5a-b941-cfd9a0b7efa2
  1349. Error Number:547,State:0,Class:16
  1350. --- End of inner exception stack trace ---
  1351. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1352. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1353. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1354. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1355. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
  1356. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1357. at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
  1358. at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1359. ][2022-06-23 15:26:26.224 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host) in 4923.5076ms
  1360. ][2022-06-23 15:26:26.225 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  1361. ][2022-06-23 15:26:26.321 +02:00 ERR An error occurred while saving the entity changes. See the inner exception for details.
  1362. ][2022-06-23 15:26:26.323 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 274 - 500 - application/json 5024.0501ms
  1363. ][2022-06-23 15:26:31.796 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 274
  1364. ][2022-06-23 15:26:31.796 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  1365. ][2022-06-23 15:26:31.796 +02:00 INF Route matched with {action = "CreateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1366. ][2022-06-23 15:38:31.376 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  1367. ][2022-06-23 15:38:31.443 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  1368. ][2022-06-23 15:38:31.567 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1369. ][2022-06-23 15:38:31.894 +02:00 INF Executed DbCommand (17ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1370. SELECT 1
  1371. ][2022-06-23 15:38:31.919 +02:00 INF Executed DbCommand (14ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1372. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  1373. ][2022-06-23 15:38:31.940 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1374. SELECT [MigrationId], [ProductVersion]
  1375. FROM [__EFMigrationsHistory]
  1376. ORDER BY [MigrationId];
  1377. ][2022-06-23 15:38:32.021 +02:00 INF Now listening on: http://localhost:5116
  1378. ][2022-06-23 15:38:32.024 +02:00 INF Application started. Press Ctrl+C to shut down.
  1379. ][2022-06-23 15:38:32.024 +02:00 INF Hosting environment: Development
  1380. ][2022-06-23 15:38:32.024 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
  1381. ][2022-06-23 15:38:40.056 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
  1382. ][2022-06-23 15:38:40.201 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
  1383. ][2022-06-23 15:38:40.201 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
  1384. ][2022-06-23 15:38:40.204 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.6274ms
  1385. ][2022-06-23 15:38:40.207 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 152.4406ms
  1386. ][2022-06-23 15:38:40.226 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 24.3840ms
  1387. ][2022-06-23 15:38:40.398 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
  1388. ][2022-06-23 15:38:40.470 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 71.4817ms
  1389. ][2022-06-23 15:38:47.589 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers - -
  1390. ][2022-06-23 15:38:47.606 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
  1391. ][2022-06-23 15:38:47.620 +02:00 INF Route matched with {action = "GetInsurers", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse]]] GetInsurers() on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1392. ][2022-06-23 15:38:47.723 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1393. ][2022-06-23 15:38:47.978 +02:00 INF Executed DbCommand (10ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1394. SELECT [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  1395. FROM [Insurers] AS [i]
  1396. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  1397. ][2022-06-23 15:38:48.090 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
  1398. ][2022-06-23 15:38:48.109 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host) in 484.0775ms
  1399. ][2022-06-23 15:38:48.109 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
  1400. ][2022-06-23 15:38:48.112 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insurers - - - 200 - application/json;+charset=utf-8 522.7365ms
  1401. ][2022-06-23 15:39:13.229 +02:00 INF Request starting HTTP/1.1 PUT http://localhost:5116/v1.0/insurers/20013 application/json 262
  1402. ][2022-06-23 15:39:13.229 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
  1403. ][2022-06-23 15:39:13.241 +02:00 INF Route matched with {action = "UpdateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] UpdateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest, Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1404. ][2022-06-23 15:39:57.589 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  1405. ][2022-06-23 15:39:57.657 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  1406. ][2022-06-23 15:39:57.791 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1407. ][2022-06-23 15:39:58.059 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1408. SELECT 1
  1409. ][2022-06-23 15:39:58.082 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1410. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  1411. ][2022-06-23 15:39:58.103 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1412. SELECT [MigrationId], [ProductVersion]
  1413. FROM [__EFMigrationsHistory]
  1414. ORDER BY [MigrationId];
  1415. ][2022-06-23 15:39:58.176 +02:00 INF Now listening on: http://localhost:5116
  1416. ][2022-06-23 15:39:58.178 +02:00 INF Application started. Press Ctrl+C to shut down.
  1417. ][2022-06-23 15:39:58.178 +02:00 INF Hosting environment: Development
  1418. ][2022-06-23 15:39:58.178 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
  1419. ][2022-06-23 15:39:59.269 +02:00 INF Request starting HTTP/1.1 PUT http://localhost:5116/v1.0/insurers/20013 application/json 262
  1420. ][2022-06-23 15:39:59.312 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
  1421. ][2022-06-23 15:39:59.335 +02:00 INF Route matched with {action = "UpdateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] UpdateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest, Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1422. ][2022-06-23 15:42:33.443 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  1423. ][2022-06-23 15:42:33.516 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  1424. ][2022-06-23 15:42:33.652 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1425. ][2022-06-23 15:42:33.947 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1426. SELECT 1
  1427. ][2022-06-23 15:42:33.968 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1428. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  1429. ][2022-06-23 15:42:33.989 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1430. SELECT [MigrationId], [ProductVersion]
  1431. FROM [__EFMigrationsHistory]
  1432. ORDER BY [MigrationId];
  1433. ][2022-06-23 15:42:34.056 +02:00 INF Now listening on: http://localhost:5116
  1434. ][2022-06-23 15:42:34.059 +02:00 INF Application started. Press Ctrl+C to shut down.
  1435. ][2022-06-23 15:42:34.059 +02:00 INF Hosting environment: Development
  1436. ][2022-06-23 15:42:34.059 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
  1437. ][2022-06-23 15:42:37.165 +02:00 INF Request starting HTTP/1.1 PUT http://localhost:5116/v1.0/insurers/20013 application/json 262
  1438. ][2022-06-23 15:42:37.208 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
  1439. ][2022-06-23 15:42:37.230 +02:00 INF Route matched with {action = "UpdateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] UpdateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest, Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1440. ][2022-06-23 15:43:20.697 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  1441. ][2022-06-23 15:43:20.764 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  1442. ][2022-06-23 15:43:20.888 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1443. ][2022-06-23 15:43:21.164 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1444. SELECT 1
  1445. ][2022-06-23 15:43:21.186 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1446. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  1447. ][2022-06-23 15:43:21.207 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1448. SELECT [MigrationId], [ProductVersion]
  1449. FROM [__EFMigrationsHistory]
  1450. ORDER BY [MigrationId];
  1451. ][2022-06-23 15:43:21.311 +02:00 INF Now listening on: http://localhost:5116
  1452. ][2022-06-23 15:43:21.315 +02:00 INF Application started. Press Ctrl+C to shut down.
  1453. ][2022-06-23 15:43:21.315 +02:00 INF Hosting environment: Development
  1454. ][2022-06-23 15:43:21.315 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
  1455. ][2022-06-23 15:43:22.292 +02:00 INF Request starting HTTP/1.1 PUT http://localhost:5116/v1.0/insurers/20013 application/json 262
  1456. ][2022-06-23 15:43:22.335 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
  1457. ][2022-06-23 15:43:22.358 +02:00 INF Route matched with {action = "UpdateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] UpdateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest, Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1458. ][2022-06-23 15:45:11.131 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  1459. ][2022-06-23 15:45:11.195 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  1460. ][2022-06-23 15:45:11.320 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1461. ][2022-06-23 15:45:11.589 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1462. SELECT 1
  1463. ][2022-06-23 15:45:11.610 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1464. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  1465. ][2022-06-23 15:45:11.631 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1466. SELECT [MigrationId], [ProductVersion]
  1467. FROM [__EFMigrationsHistory]
  1468. ORDER BY [MigrationId];
  1469. ][2022-06-23 15:45:11.698 +02:00 INF Now listening on: http://localhost:5116
  1470. ][2022-06-23 15:45:11.701 +02:00 INF Application started. Press Ctrl+C to shut down.
  1471. ][2022-06-23 15:45:11.701 +02:00 INF Hosting environment: Development
  1472. ][2022-06-23 15:45:11.701 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
  1473. ][2022-06-23 15:45:16.122 +02:00 INF Request starting HTTP/1.1 PUT http://localhost:5116/v1.0/insurers/20013 application/json 262
  1474. ][2022-06-23 15:45:16.165 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
  1475. ][2022-06-23 15:45:16.186 +02:00 INF Route matched with {action = "UpdateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] UpdateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest, Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1476. ][2022-06-23 15:45:20.606 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1477. ][2022-06-23 15:45:20.925 +02:00 INF Executed DbCommand (26ms) [Parameters=[@__id_0='20013'], CommandType='"Text"', CommandTimeout='30']
  1478. SELECT TOP(1) [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  1479. FROM [Insurers] AS [i]
  1480. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  1481. WHERE [i].[Id] = @__id_0
  1482. ][2022-06-23 15:45:25.842 +02:00 ERR Failed executing DbCommand (25ms) [Parameters=[@p3='20013', @p0='2022-06-23T13:39:00.0800000Z', @p1='Ermin' (Nullable = false) (Size = 4000), @p2='0'], CommandType='"Text"', CommandTimeout='30']
  1483. SET NOCOUNT ON;
  1484. UPDATE [Insurers] SET [DateOfBirth] = @p0, [FirstName] = @p1, [InsuranceCompanyId] = @p2
  1485. WHERE [Id] = @p3;
  1486. SELECT @@ROWCOUNT;
  1487. ][2022-06-23 15:45:25.860 +02:00 ERR An exception occurred in the database while saving changes for context type 'Diligent.WebAPI.Data.DatabaseContext'.
  1488. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
  1489. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_Insurers_InsuranceCompanies_InsuranceCompanyId". The conflict occurred in database "WebApiDB", table "dbo.InsuranceCompanies", column 'Id'.
  1490. The statement has been terminated.
  1491. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
  1492. at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
  1493. at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
  1494. at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  1495. --- End of stack trace from previous location ---
  1496. at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
  1497. --- End of stack trace from previous location ---
  1498. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1499. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1500. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1501. ClientConnectionId:cbb35646-59da-4eae-b330-6056534cd2ba
  1502. Error Number:547,State:0,Class:16
  1503. --- End of inner exception stack trace ---
  1504. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1505. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1506. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1507. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1508. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
  1509. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1510. at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
  1511. at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1512. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
  1513. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_Insurers_InsuranceCompanies_InsuranceCompanyId". The conflict occurred in database "WebApiDB", table "dbo.InsuranceCompanies", column 'Id'.
  1514. The statement has been terminated.
  1515. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
  1516. at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
  1517. at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
  1518. at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  1519. --- End of stack trace from previous location ---
  1520. at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
  1521. --- End of stack trace from previous location ---
  1522. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1523. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1524. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1525. ClientConnectionId:cbb35646-59da-4eae-b330-6056534cd2ba
  1526. Error Number:547,State:0,Class:16
  1527. --- End of inner exception stack trace ---
  1528. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1529. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1530. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1531. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1532. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
  1533. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1534. at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
  1535. at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1536. ][2022-06-23 15:45:26.056 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host) in 9865.172ms
  1537. ][2022-06-23 15:45:26.057 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
  1538. ][2022-06-23 15:45:26.166 +02:00 ERR An error occurred while saving the entity changes. See the inner exception for details.
  1539. ][2022-06-23 15:45:26.177 +02:00 INF Request finished HTTP/1.1 PUT http://localhost:5116/v1.0/insurers/20013 application/json 262 - 500 - application/json 10056.8974ms
  1540. ][2022-06-23 15:45:35.101 +02:00 INF Request starting HTTP/1.1 PUT http://localhost:5116/v1.0/insurers/20013 application/json 262
  1541. ][2022-06-23 15:45:40.171 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  1542. ][2022-06-23 15:45:40.237 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  1543. ][2022-06-23 15:45:40.359 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1544. ][2022-06-23 15:45:40.621 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1545. SELECT 1
  1546. ][2022-06-23 15:45:40.643 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1547. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  1548. ][2022-06-23 15:45:40.663 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1549. SELECT [MigrationId], [ProductVersion]
  1550. FROM [__EFMigrationsHistory]
  1551. ORDER BY [MigrationId];
  1552. ][2022-06-23 15:45:40.727 +02:00 INF Now listening on: http://localhost:5116
  1553. ][2022-06-23 15:45:40.730 +02:00 INF Application started. Press Ctrl+C to shut down.
  1554. ][2022-06-23 15:45:40.730 +02:00 INF Hosting environment: Development
  1555. ][2022-06-23 15:45:40.730 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
  1556. ][2022-06-23 15:45:40.975 +02:00 INF Request starting HTTP/1.1 PUT http://localhost:5116/v1.0/insurers/20013 application/json 262
  1557. ][2022-06-23 15:45:41.015 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
  1558. ][2022-06-23 15:45:41.036 +02:00 INF Route matched with {action = "UpdateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] UpdateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest, Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1559. ][2022-06-23 15:46:02.944 +02:00 INF Request starting HTTP/1.1 PUT http://localhost:5116/v1.0/insurers/20013 application/json 262
  1560. ][2022-06-23 15:46:03.798 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
  1561. ][2022-06-23 15:46:03.798 +02:00 INF Route matched with {action = "UpdateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] UpdateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest, Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1562. ][2022-06-23 15:46:07.024 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1563. ][2022-06-23 15:46:07.094 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1564. ][2022-06-23 15:46:07.366 +02:00 INF Executed DbCommand (50ms) [Parameters=[@__id_0='20013'], CommandType='"Text"', CommandTimeout='30']
  1565. SELECT TOP(1) [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  1566. FROM [Insurers] AS [i]
  1567. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  1568. WHERE [i].[Id] = @__id_0
  1569. ][2022-06-23 15:46:07.366 +02:00 INF Executed DbCommand (20ms) [Parameters=[@__id_0='20013'], CommandType='"Text"', CommandTimeout='30']
  1570. SELECT TOP(1) [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  1571. FROM [Insurers] AS [i]
  1572. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  1573. WHERE [i].[Id] = @__id_0
  1574. ][2022-06-23 15:46:12.130 +02:00 ERR Failed executing DbCommand (7ms) [Parameters=[@p3='20013', @p0='2022-06-23T13:39:00.0800000Z', @p1='Ermin' (Nullable = false) (Size = 4000), @p2='0'], CommandType='"Text"', CommandTimeout='30']
  1575. SET NOCOUNT ON;
  1576. UPDATE [Insurers] SET [DateOfBirth] = @p0, [FirstName] = @p1, [InsuranceCompanyId] = @p2
  1577. WHERE [Id] = @p3;
  1578. SELECT @@ROWCOUNT;
  1579. ][2022-06-23 15:46:12.141 +02:00 INF Executed DbCommand (85ms) [Parameters=[@p2='20013', @p0='2022-06-23T13:39:00.0800000Z', @p1='Ermin' (Nullable = false) (Size = 4000)], CommandType='"Text"', CommandTimeout='30']
  1580. SET NOCOUNT ON;
  1581. UPDATE [Insurers] SET [DateOfBirth] = @p0, [FirstName] = @p1
  1582. WHERE [Id] = @p2;
  1583. SELECT @@ROWCOUNT;
  1584. ][2022-06-23 15:46:12.159 +02:00 ERR An exception occurred in the database while saving changes for context type 'Diligent.WebAPI.Data.DatabaseContext'.
  1585. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
  1586. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_Insurers_InsuranceCompanies_InsuranceCompanyId". The conflict occurred in database "WebApiDB", table "dbo.InsuranceCompanies", column 'Id'.
  1587. The statement has been terminated.
  1588. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
  1589. at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
  1590. at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
  1591. at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  1592. --- End of stack trace from previous location ---
  1593. at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  1594. at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
  1595. --- End of stack trace from previous location ---
  1596. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1597. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1598. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1599. ClientConnectionId:f42f93bd-09f2-4bba-8a6f-dad7ac2c7f31
  1600. Error Number:547,State:0,Class:16
  1601. --- End of inner exception stack trace ---
  1602. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1603. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1604. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1605. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1606. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
  1607. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1608. at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
  1609. at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1610. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
  1611. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_Insurers_InsuranceCompanies_InsuranceCompanyId". The conflict occurred in database "WebApiDB", table "dbo.InsuranceCompanies", column 'Id'.
  1612. The statement has been terminated.
  1613. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
  1614. at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
  1615. at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
  1616. at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  1617. --- End of stack trace from previous location ---
  1618. at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  1619. at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
  1620. --- End of stack trace from previous location ---
  1621. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1622. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1623. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1624. ClientConnectionId:f42f93bd-09f2-4bba-8a6f-dad7ac2c7f31
  1625. Error Number:547,State:0,Class:16
  1626. --- End of inner exception stack trace ---
  1627. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1628. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1629. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1630. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1631. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
  1632. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1633. at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
  1634. at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1635. ][2022-06-23 15:46:18.609 +02:00 INF Executing StatusCodeResult, setting HTTP status code 200
  1636. ][2022-06-23 15:46:18.610 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host) in 14811.1367ms
  1637. ][2022-06-23 15:46:18.610 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host) in 37568.9283ms
  1638. ][2022-06-23 15:46:18.611 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
  1639. ][2022-06-23 15:46:18.611 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
  1640. ][2022-06-23 15:46:21.887 +02:00 ERR An error occurred while saving the entity changes. See the inner exception for details.
  1641. ][2022-06-23 15:46:22.970 +02:00 INF Request finished HTTP/1.1 PUT http://localhost:5116/v1.0/insurers/20013 application/json 262 - 500 - application/json 41997.2833ms
  1642. ][2022-06-23 15:46:22.970 +02:00 INF Request finished HTTP/1.1 PUT http://localhost:5116/v1.0/insurers/20013 application/json 262 - 200 0 - 20027.3373ms
  1643. ][2022-06-23 15:46:38.469 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
  1644. ][2022-06-23 15:46:38.471 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
  1645. ][2022-06-23 15:46:38.474 +02:00 INF Route matched with {action = "GetInsuranceCompanies", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO]]] GetInsuranceCompanies() on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
  1646. ][2022-06-23 15:46:38.481 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1647. ][2022-06-23 15:46:38.487 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1648. SELECT [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
  1649. FROM [InsuranceCompanies] AS [i]
  1650. ][2022-06-23 15:46:38.505 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
  1651. ][2022-06-23 15:46:38.516 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 41.2158ms
  1652. ][2022-06-23 15:46:38.516 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
  1653. ][2022-06-23 15:46:38.516 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - - - 200 - application/json;+charset=utf-8 47.0903ms
  1654. ][2022-06-23 15:47:16.135 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  1655. ][2022-06-23 15:47:16.202 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  1656. ][2022-06-23 15:47:16.336 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1657. ][2022-06-23 15:47:16.601 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1658. SELECT 1
  1659. ][2022-06-23 15:47:16.623 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1660. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  1661. ][2022-06-23 15:47:16.643 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1662. SELECT [MigrationId], [ProductVersion]
  1663. FROM [__EFMigrationsHistory]
  1664. ORDER BY [MigrationId];
  1665. ][2022-06-23 15:47:16.707 +02:00 INF Now listening on: http://localhost:5116
  1666. ][2022-06-23 15:47:16.710 +02:00 INF Application started. Press Ctrl+C to shut down.
  1667. ][2022-06-23 15:47:16.710 +02:00 INF Hosting environment: Development
  1668. ][2022-06-23 15:47:16.710 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
  1669. ][2022-06-23 15:47:22.312 +02:00 INF Request starting HTTP/1.1 PUT http://localhost:5116/v1.0/insurers/20013 application/json 262
  1670. ][2022-06-23 15:47:22.354 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
  1671. ][2022-06-23 15:47:22.375 +02:00 INF Route matched with {action = "UpdateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] UpdateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest, Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1672. ][2022-06-23 15:47:22.510 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1673. ][2022-06-23 15:47:22.800 +02:00 INF Executed DbCommand (26ms) [Parameters=[@__id_0='20013'], CommandType='"Text"', CommandTimeout='30']
  1674. SELECT TOP(1) [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  1675. FROM [Insurers] AS [i]
  1676. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  1677. WHERE [i].[Id] = @__id_0
  1678. ][2022-06-23 15:47:22.949 +02:00 INF Executing StatusCodeResult, setting HTTP status code 200
  1679. ][2022-06-23 15:47:22.953 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host) in 574.4739ms
  1680. ][2022-06-23 15:47:22.954 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
  1681. ][2022-06-23 15:47:22.963 +02:00 INF Request finished HTTP/1.1 PUT http://localhost:5116/v1.0/insurers/20013 application/json 262 - 200 0 - 653.4970ms
  1682. ][2022-06-23 15:47:42.923 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers/20013 - -
  1683. ][2022-06-23 15:47:42.927 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
  1684. ][2022-06-23 15:47:42.930 +02:00 INF Route matched with {action = "GetInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse]] GetInsurer(Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1685. ][2022-06-23 15:47:42.979 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1686. ][2022-06-23 15:47:42.983 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__id_0='20013'], CommandType='"Text"', CommandTimeout='30']
  1687. SELECT TOP(1) [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  1688. FROM [Insurers] AS [i]
  1689. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  1690. WHERE [i].[Id] = @__id_0
  1691. ][2022-06-23 15:47:42.995 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
  1692. ][2022-06-23 15:47:43.008 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host) in 78.0433ms
  1693. ][2022-06-23 15:47:43.008 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
  1694. ][2022-06-23 15:47:43.009 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insurers/20013 - - - 200 - application/json;+charset=utf-8 85.1625ms
  1695. ][2022-06-23 15:47:50.868 +02:00 INF Request starting HTTP/1.1 PUT http://localhost:5116/v1.0/insurers/20013 application/json 263
  1696. ][2022-06-23 15:47:50.868 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
  1697. ][2022-06-23 15:47:50.868 +02:00 INF Route matched with {action = "UpdateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] UpdateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest, Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1698. ][2022-06-23 15:47:50.871 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1699. ][2022-06-23 15:47:50.874 +02:00 INF Executed DbCommand (3ms) [Parameters=[@__id_0='20013'], CommandType='"Text"', CommandTimeout='30']
  1700. SELECT TOP(1) [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  1701. FROM [Insurers] AS [i]
  1702. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  1703. WHERE [i].[Id] = @__id_0
  1704. ][2022-06-23 15:47:50.933 +02:00 INF Executed DbCommand (3ms) [Parameters=[@p1='20013', @p0='ErminN' (Nullable = false) (Size = 4000)], CommandType='"Text"', CommandTimeout='30']
  1705. SET NOCOUNT ON;
  1706. UPDATE [Insurers] SET [FirstName] = @p0
  1707. WHERE [Id] = @p1;
  1708. SELECT @@ROWCOUNT;
  1709. ][2022-06-23 15:47:50.955 +02:00 INF Executing StatusCodeResult, setting HTTP status code 200
  1710. ][2022-06-23 15:47:50.956 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host) in 87.2486ms
  1711. ][2022-06-23 15:47:50.956 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
  1712. ][2022-06-23 15:47:50.956 +02:00 INF Request finished HTTP/1.1 PUT http://localhost:5116/v1.0/insurers/20013 application/json 263 - 200 0 - 88.1435ms
  1713. ][2022-06-23 15:47:57.536 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers/20013 - -
  1714. ][2022-06-23 15:47:57.536 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
  1715. ][2022-06-23 15:47:57.536 +02:00 INF Route matched with {action = "GetInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse]] GetInsurer(Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1716. ][2022-06-23 15:47:57.537 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1717. ][2022-06-23 15:47:57.540 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__id_0='20013'], CommandType='"Text"', CommandTimeout='30']
  1718. SELECT TOP(1) [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  1719. FROM [Insurers] AS [i]
  1720. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  1721. WHERE [i].[Id] = @__id_0
  1722. ][2022-06-23 15:47:57.540 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
  1723. ][2022-06-23 15:47:57.540 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host) in 4.1898ms
  1724. ][2022-06-23 15:47:57.540 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
  1725. ][2022-06-23 15:47:57.541 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insurers/20013 - - - 200 - application/json;+charset=utf-8 4.6874ms
  1726. ][2022-06-23 15:48:02.664 +02:00 INF Request starting HTTP/1.1 PUT http://localhost:5116/v1.0/insurers/200134 application/json 263
  1727. ][2022-06-23 15:48:02.665 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
  1728. ][2022-06-23 15:48:02.665 +02:00 INF Route matched with {action = "UpdateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] UpdateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest, Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1729. ][2022-06-23 15:48:02.666 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1730. ][2022-06-23 15:48:02.669 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__id_0='200134'], CommandType='"Text"', CommandTimeout='30']
  1731. SELECT TOP(1) [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  1732. FROM [Insurers] AS [i]
  1733. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  1734. WHERE [i].[Id] = @__id_0
  1735. ][2022-06-23 15:48:02.761 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host) in 96.0497ms
  1736. ][2022-06-23 15:48:02.761 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
  1737. ][2022-06-23 15:48:02.847 +02:00 ERR Insurer with id 200134 not found.
  1738. ][2022-06-23 15:48:02.849 +02:00 INF Request finished HTTP/1.1 PUT http://localhost:5116/v1.0/insurers/200134 application/json 263 - 404 - application/json 184.8829ms
  1739. ][2022-06-23 15:57:43.044 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  1740. ][2022-06-23 15:57:43.113 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  1741. ][2022-06-23 15:57:43.248 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1742. ][2022-06-23 15:57:43.541 +02:00 INF Executed DbCommand (19ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1743. SELECT 1
  1744. ][2022-06-23 15:57:43.566 +02:00 INF Executed DbCommand (14ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1745. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  1746. ][2022-06-23 15:57:43.587 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1747. SELECT [MigrationId], [ProductVersion]
  1748. FROM [__EFMigrationsHistory]
  1749. ORDER BY [MigrationId];
  1750. ][2022-06-23 15:57:43.664 +02:00 INF Now listening on: http://localhost:5116
  1751. ][2022-06-23 15:57:43.667 +02:00 INF Application started. Press Ctrl+C to shut down.
  1752. ][2022-06-23 15:57:43.667 +02:00 INF Hosting environment: Development
  1753. ][2022-06-23 15:57:43.667 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
  1754. ][2022-06-23 15:57:53.078 +02:00 INF Request starting HTTP/1.1 DELETE http://localhost:5116/v1.0/insurers/20013 - -
  1755. ][2022-06-23 15:57:53.127 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.DeleteInsurer (Diligent.WebAPI.Host)'
  1756. ][2022-06-23 15:57:53.151 +02:00 INF Route matched with {action = "DeleteInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] DeleteInsurer(Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1757. ][2022-06-23 15:57:53.270 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1758. ][2022-06-23 15:57:53.556 +02:00 INF Executed DbCommand (26ms) [Parameters=[@__id_0='20013'], CommandType='"Text"', CommandTimeout='30']
  1759. SELECT TOP(1) [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  1760. FROM [Insurers] AS [i]
  1761. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  1762. WHERE [i].[Id] = @__id_0
  1763. ][2022-06-23 15:57:53.743 +02:00 INF Executed DbCommand (5ms) [Parameters=[@p0='20013'], CommandType='"Text"', CommandTimeout='30']
  1764. SET NOCOUNT ON;
  1765. DELETE FROM [Insurers]
  1766. WHERE [Id] = @p0;
  1767. SELECT @@ROWCOUNT;
  1768. ][2022-06-23 15:57:53.774 +02:00 INF Executing StatusCodeResult, setting HTTP status code 204
  1769. ][2022-06-23 15:57:53.779 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.DeleteInsurer (Diligent.WebAPI.Host) in 623.6765ms
  1770. ][2022-06-23 15:57:53.779 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.DeleteInsurer (Diligent.WebAPI.Host)'
  1771. ][2022-06-23 15:57:53.788 +02:00 INF Request finished HTTP/1.1 DELETE http://localhost:5116/v1.0/insurers/20013 - - - 204 - - 712.9731ms
  1772. ][2022-06-23 15:57:57.589 +02:00 INF Request starting HTTP/1.1 PUT http://localhost:5116/v1.0/insurers/200134 application/json 263
  1773. ][2022-06-23 15:57:57.590 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
  1774. ][2022-06-23 15:57:57.594 +02:00 INF Route matched with {action = "UpdateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] UpdateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest, Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1775. ][2022-06-23 15:57:57.667 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1776. ][2022-06-23 15:57:57.671 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__id_0='200134'], CommandType='"Text"', CommandTimeout='30']
  1777. SELECT TOP(1) [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  1778. FROM [Insurers] AS [i]
  1779. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  1780. WHERE [i].[Id] = @__id_0
  1781. ][2022-06-23 15:57:57.765 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host) in 170.1916ms
  1782. ][2022-06-23 15:57:57.765 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
  1783. ][2022-06-23 15:57:57.854 +02:00 ERR Insurer with id 200134 not found.
  1784. ][2022-06-23 15:57:57.857 +02:00 INF Request finished HTTP/1.1 PUT http://localhost:5116/v1.0/insurers/200134 application/json 263 - 404 - application/json 268.1641ms
  1785. ][2022-06-23 15:58:05.234 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers/20013 - -
  1786. ][2022-06-23 15:58:05.236 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
  1787. ][2022-06-23 15:58:05.238 +02:00 INF Route matched with {action = "GetInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse]] GetInsurer(Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1788. ][2022-06-23 15:58:05.243 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1789. ][2022-06-23 15:58:05.246 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__id_0='20013'], CommandType='"Text"', CommandTimeout='30']
  1790. SELECT TOP(1) [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  1791. FROM [Insurers] AS [i]
  1792. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  1793. WHERE [i].[Id] = @__id_0
  1794. ][2022-06-23 15:58:05.313 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host) in 74.1078ms
  1795. ][2022-06-23 15:58:05.313 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
  1796. ][2022-06-23 15:58:05.385 +02:00 ERR Insurer with ID 20013 has not been found.
  1797. ][2022-06-23 15:58:05.386 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insurers/20013 - - - 404 - application/json 151.6389ms
  1798. ][2022-06-23 15:58:09.534 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers - -
  1799. ][2022-06-23 15:58:09.534 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
  1800. ][2022-06-23 15:58:09.536 +02:00 INF Route matched with {action = "GetInsurers", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse]]] GetInsurers() on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1801. ][2022-06-23 15:58:09.539 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1802. ][2022-06-23 15:58:09.557 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1803. SELECT [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  1804. FROM [Insurers] AS [i]
  1805. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  1806. ][2022-06-23 15:58:09.581 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
  1807. ][2022-06-23 15:58:09.594 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host) in 57.7952ms
  1808. ][2022-06-23 15:58:09.594 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
  1809. ][2022-06-23 15:58:09.594 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insurers - - - 200 - application/json;+charset=utf-8 60.3518ms
  1810. ][2022-06-23 15:58:16.189 +02:00 INF Request starting HTTP/1.1 DELETE http://localhost:5116/v1.0/insurers/20013 - -
  1811. ][2022-06-23 15:58:16.189 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.DeleteInsurer (Diligent.WebAPI.Host)'
  1812. ][2022-06-23 15:58:16.189 +02:00 INF Route matched with {action = "DeleteInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] DeleteInsurer(Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1813. ][2022-06-23 15:58:16.190 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1814. ][2022-06-23 15:58:16.193 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__id_0='20013'], CommandType='"Text"', CommandTimeout='30']
  1815. SELECT TOP(1) [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  1816. FROM [Insurers] AS [i]
  1817. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  1818. WHERE [i].[Id] = @__id_0
  1819. ][2022-06-23 15:58:16.269 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.DeleteInsurer (Diligent.WebAPI.Host) in 80.1132ms
  1820. ][2022-06-23 15:58:16.270 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.DeleteInsurer (Diligent.WebAPI.Host)'
  1821. ][2022-06-23 15:58:16.336 +02:00 ERR Insurer with ID 20013 has not been found.
  1822. ][2022-06-23 15:58:16.336 +02:00 INF Request finished HTTP/1.1 DELETE http://localhost:5116/v1.0/insurers/20013 - - - 404 - application/json 147.0088ms
  1823. ][2022-06-23 15:58:22.261 +02:00 INF Request starting HTTP/1.1 DELETE http://localhost:5116/v1.0/insurers/20012 - -
  1824. ][2022-06-23 15:58:22.261 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.DeleteInsurer (Diligent.WebAPI.Host)'
  1825. ][2022-06-23 15:58:22.262 +02:00 INF Route matched with {action = "DeleteInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] DeleteInsurer(Int64) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1826. ][2022-06-23 15:58:22.263 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1827. ][2022-06-23 15:58:22.265 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__id_0='20012'], CommandType='"Text"', CommandTimeout='30']
  1828. SELECT TOP(1) [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  1829. FROM [Insurers] AS [i]
  1830. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  1831. WHERE [i].[Id] = @__id_0
  1832. ][2022-06-23 15:58:22.269 +02:00 INF Executed DbCommand (2ms) [Parameters=[@p0='20012'], CommandType='"Text"', CommandTimeout='30']
  1833. SET NOCOUNT ON;
  1834. DELETE FROM [Insurers]
  1835. WHERE [Id] = @p0;
  1836. SELECT @@ROWCOUNT;
  1837. ][2022-06-23 15:58:22.273 +02:00 INF Executing StatusCodeResult, setting HTTP status code 204
  1838. ][2022-06-23 15:58:22.273 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.DeleteInsurer (Diligent.WebAPI.Host) in 11.9221ms
  1839. ][2022-06-23 15:58:22.274 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.DeleteInsurer (Diligent.WebAPI.Host)'
  1840. ][2022-06-23 15:58:22.274 +02:00 INF Request finished HTTP/1.1 DELETE http://localhost:5116/v1.0/insurers/20012 - - - 204 - - 12.3823ms
  1841. ][2022-06-23 15:58:35.239 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers - -
  1842. ][2022-06-23 15:58:35.240 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
  1843. ][2022-06-23 15:58:35.240 +02:00 INF Route matched with {action = "GetInsurers", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse]]] GetInsurers() on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1844. ][2022-06-23 15:58:35.240 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1845. ][2022-06-23 15:58:35.243 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1846. SELECT [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
  1847. FROM [Insurers] AS [i]
  1848. INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
  1849. ][2022-06-23 15:58:35.244 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
  1850. ][2022-06-23 15:58:35.245 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host) in 4.7799ms
  1851. ][2022-06-23 15:58:35.245 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
  1852. ][2022-06-23 15:58:35.245 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insurers - - - 200 - application/json;+charset=utf-8 5.3067ms
  1853. ][2022-06-23 16:00:15.995 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
  1854. ][2022-06-23 16:00:16.060 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
  1855. ][2022-06-23 16:00:16.185 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1856. ][2022-06-23 16:00:16.447 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1857. SELECT 1
  1858. ][2022-06-23 16:00:16.470 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1859. SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
  1860. ][2022-06-23 16:00:16.489 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
  1861. SELECT [MigrationId], [ProductVersion]
  1862. FROM [__EFMigrationsHistory]
  1863. ORDER BY [MigrationId];
  1864. ][2022-06-23 16:00:16.556 +02:00 INF Now listening on: http://localhost:5116
  1865. ][2022-06-23 16:00:16.559 +02:00 INF Application started. Press Ctrl+C to shut down.
  1866. ][2022-06-23 16:00:16.559 +02:00 INF Hosting environment: Development
  1867. ][2022-06-23 16:00:16.559 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
  1868. ][2022-06-23 16:00:46.428 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 263
  1869. ][2022-06-23 16:00:46.474 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  1870. ][2022-06-23 16:00:46.495 +02:00 INF Route matched with {action = "CreateInsurer", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateInsurer(Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerRequest) on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
  1871. ][2022-06-23 16:00:46.644 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
  1872. ][2022-06-23 16:00:46.850 +02:00 ERR Failed executing DbCommand (32ms) [Parameters=[@p0='string' (Nullable = false) (Size = 4000), @p1='string' (Nullable = false) (Size = 4000), @p2='string' (Nullable = false) (Size = 4000), @p3='0001-01-01T00:00:00.0000000', @p4='2022-06-23T14:00:26.3580000Z', @p5=NULL (DbType = DateTime2), @p6='string' (Nullable = false) (Size = 4000), @p7='Dzenis' (Nullable = false) (Size = 4000), @p8='0', @p9='string' (Nullable = false) (Size = 4000), @p10='string' (Nullable = false) (Size = 4000), @p11='string' (Nullable = false) (Size = 4000), @p12=NULL (DbType = DateTime2)], CommandType='"Text"', CommandTimeout='30']
  1873. SET NOCOUNT ON;
  1874. INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
  1875. VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
  1876. SELECT [Id]
  1877. FROM [Insurers]
  1878. WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
  1879. ][2022-06-23 16:00:46.869 +02:00 ERR An exception occurred in the database while saving changes for context type 'Diligent.WebAPI.Data.DatabaseContext'.
  1880. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
  1881. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Insurers_InsuranceCompanies_InsuranceCompanyId". The conflict occurred in database "WebApiDB", table "dbo.InsuranceCompanies", column 'Id'.
  1882. The statement has been terminated.
  1883. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
  1884. at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
  1885. at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
  1886. at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  1887. --- End of stack trace from previous location ---
  1888. at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
  1889. --- End of stack trace from previous location ---
  1890. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1891. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1892. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1893. ClientConnectionId:41547195-6633-4df6-84c1-ab7c8e55dd8b
  1894. Error Number:547,State:0,Class:16
  1895. --- End of inner exception stack trace ---
  1896. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1897. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1898. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1899. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1900. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
  1901. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1902. at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
  1903. at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1904. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
  1905. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Insurers_InsuranceCompanies_InsuranceCompanyId". The conflict occurred in database "WebApiDB", table "dbo.InsuranceCompanies", column 'Id'.
  1906. The statement has been terminated.
  1907. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
  1908. at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
  1909. at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
  1910. at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  1911. --- End of stack trace from previous location ---
  1912. at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
  1913. --- End of stack trace from previous location ---
  1914. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1915. at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
  1916. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1917. ClientConnectionId:41547195-6633-4df6-84c1-ab7c8e55dd8b
  1918. Error Number:547,State:0,Class:16
  1919. --- End of inner exception stack trace ---
  1920. at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
  1921. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1922. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1923. at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
  1924. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
  1925. at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1926. at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
  1927. at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
  1928. ][2022-06-23 16:00:47.038 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host) in 538.328ms
  1929. ][2022-06-23 16:00:47.039 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
  1930. ][2022-06-23 16:00:47.150 +02:00 ERR An error occurred while saving the entity changes. See the inner exception for details.
  1931. ][2022-06-23 16:00:47.162 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/insurers application/json 263 - 500 - application/json 735.6603ms
  1932. ]