| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933 |
- [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.
- ][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.
- ][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'.
- ][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
- ][2022-06-23 11:23:30.203 +02:00 INF Executed DbCommand (17ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 11:23:30.226 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 11:23:30.252 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 11:23:30.436 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 11:23:30.439 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 11:23:30.439 +02:00 INF Hosting environment: Development
- ][2022-06-23 11:23:30.439 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
- ][2022-06-23 11:23:32.662 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
- ][2022-06-23 11:23:32.874 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
- ][2022-06-23 11:23:32.874 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
- ][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
- ][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
- ][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
- ][2022-06-23 11:23:32.988 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
- ][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
- ][2022-06-23 11:23:38.953 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
- ][2022-06-23 11:23:38.961 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
- ][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).
- ][2022-06-23 11:23:39.141 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 162.5231ms
- ][2022-06-23 11:23:39.142 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
- ][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.
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 11:25:47.856 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 11:25:47.877 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 11:25:47.897 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 11:25:47.961 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 11:25:47.964 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 11:25:47.964 +02:00 INF Hosting environment: Development
- ][2022-06-23 11:25:47.964 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
- ][2022-06-23 11:25:51.572 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
- ][2022-06-23 11:25:51.627 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
- ][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).
- ][2022-06-23 11:25:51.790 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 144.8156ms
- ][2022-06-23 11:25:51.791 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
- ][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.
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 11:29:39.631 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 11:29:39.653 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 11:29:39.672 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 11:29:39.738 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 11:29:39.740 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 11:29:39.741 +02:00 INF Hosting environment: Development
- ][2022-06-23 11:29:39.741 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
- ][2022-06-23 11:29:42.943 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
- ][2022-06-23 11:29:43.083 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
- ][2022-06-23 11:29:43.084 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
- ][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
- ][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
- ][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
- ][2022-06-23 11:29:43.289 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
- ][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
- ][2022-06-23 11:29:56.033 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
- ][2022-06-23 11:29:56.041 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 11:29:56.374 +02:00 INF Executed DbCommand (10ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsuranceCompanies] AS [i]
- ][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]]'.
- ][2022-06-23 11:29:56.476 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 415.7187ms
- ][2022-06-23 11:29:56.476 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 11:58:03.942 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 11:58:03.964 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 11:58:03.983 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 11:58:04.061 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 11:58:04.063 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 11:58:04.064 +02:00 INF Hosting environment: Development
- ][2022-06-23 11:58:04.064 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
- ][2022-06-23 11:58:05.193 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
- ][2022-06-23 11:58:05.337 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
- ][2022-06-23 11:58:05.340 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
- ][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
- ][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
- ][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
- ][2022-06-23 11:58:05.540 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
- ][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
- ][2022-06-23 11:58:19.984 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/3 - -
- ][2022-06-23 11:58:19.992 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 11:58:20.386 +02:00 INF Executed DbCommand (29ms) [Parameters=[@__p_0='3'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsuranceCompanies] AS [i]
- WHERE [i].[Id] = @__p_0
- ][2022-06-23 11:58:20.458 +02:00 INF Executing OkObjectResult, writing value of type 'Diligent.WebAPI.Data.Entities.InsuranceCompany'.
- ][2022-06-23 11:58:20.471 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host) in 451.4837ms
- ][2022-06-23 11:58:20.472 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
- ][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
- ][2022-06-23 11:58:25.011 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/3123 - -
- ][2022-06-23 11:58:25.012 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 11:58:25.059 +02:00 INF Executed DbCommand (3ms) [Parameters=[@__p_0='3123'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsuranceCompanies] AS [i]
- WHERE [i].[Id] = @__p_0
- ][2022-06-23 11:58:25.151 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host) in 139.2368ms
- ][2022-06-23 11:58:25.152 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
- ][2022-06-23 11:58:25.236 +02:00 ERR Insurance company with ID 3123 has not been found.
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 12:04:27.302 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 12:04:27.325 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 12:04:27.345 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 12:04:27.416 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 12:04:27.420 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 12:04:27.420 +02:00 INF Hosting environment: Development
- ][2022-06-23 12:04:27.420 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
- ][2022-06-23 12:04:30.465 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/3123 - -
- ][2022-06-23 12:04:30.512 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 12:04:30.899 +02:00 INF Executed DbCommand (25ms) [Parameters=[@__p_0='3123'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsuranceCompanies] AS [i]
- WHERE [i].[Id] = @__p_0
- ][2022-06-23 12:04:31.010 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host) in 472.4015ms
- ][2022-06-23 12:04:31.011 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
- ][2022-06-23 12:04:31.109 +02:00 ERR Insurance company with ID 3123 has not been found.
- ][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
- ][2022-06-23 12:04:35.981 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/4 - -
- ][2022-06-23 12:04:35.982 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 12:04:36.029 +02:00 INF Executed DbCommand (3ms) [Parameters=[@__p_0='4'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsuranceCompanies] AS [i]
- WHERE [i].[Id] = @__p_0
- ][2022-06-23 12:04:36.083 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Data.Entities.InsuranceCompany'.
- ][2022-06-23 12:04:36.091 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host) in 108.5806ms
- ][2022-06-23 12:04:36.091 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 12:32:05.536 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 12:32:05.558 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 12:32:05.577 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 12:32:05.644 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 12:32:05.646 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 12:32:05.647 +02:00 INF Hosting environment: Development
- ][2022-06-23 12:32:05.647 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
- ][2022-06-23 12:32:15.713 +02:00 INF Request starting HTTP/1.1 DELETE http://localhost:5116/v1.0/insuranceCompanies/5151 - -
- ][2022-06-23 12:32:15.747 +02:00 ERR An unhandled exception has occurred while executing the request.
- Microsoft.AspNetCore.Routing.Matching.AmbiguousMatchException: The request matched multiple endpoints. Matches:
-
- Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host)
- Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompanys (Diligent.WebAPI.Host)
- at Microsoft.AspNetCore.Routing.Matching.DefaultEndpointSelector.ReportAmbiguity(CandidateState[] candidateState)
- at Microsoft.AspNetCore.Routing.Matching.DefaultEndpointSelector.ProcessFinalCandidates(HttpContext httpContext, CandidateState[] candidateState)
- at Microsoft.AspNetCore.Routing.Matching.DefaultEndpointSelector.Select(HttpContext httpContext, CandidateState[] candidateState)
- at Microsoft.AspNetCore.Routing.Matching.DefaultEndpointSelector.SelectAsync(HttpContext httpContext, CandidateSet candidateSet)
- at Microsoft.AspNetCore.Routing.Matching.DfaMatcher.SelectEndpointWithPoliciesAsync(HttpContext httpContext, IEndpointSelectorPolicy[] policies, CandidateSet candidateSet)
- at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatch|8_1(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task matchTask)
- at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 12:32:32.510 +02:00 INF Executed DbCommand (18ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 12:32:32.533 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 12:32:32.553 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 12:32:32.619 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 12:32:32.622 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 12:32:32.622 +02:00 INF Hosting environment: Development
- ][2022-06-23 12:32:32.622 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
- ][2022-06-23 12:32:33.057 +02:00 INF Request starting HTTP/1.1 DELETE http://localhost:5116/v1.0/insuranceCompanies/5151 - -
- ][2022-06-23 12:32:33.098 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 12:32:33.498 +02:00 INF Executed DbCommand (27ms) [Parameters=[@__p_0='5151'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsuranceCompanies] AS [i]
- WHERE [i].[Id] = @__p_0
- ][2022-06-23 12:32:33.615 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host) in 487.9412ms
- ][2022-06-23 12:32:33.616 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host)'
- ][2022-06-23 12:32:33.713 +02:00 ERR Exception of type 'Diligent.WebAPI.Host.Exceptions.NotFoundException' was thrown.
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 12:33:23.686 +02:00 INF Executed DbCommand (18ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 12:33:23.712 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 12:33:23.736 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 12:33:23.828 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 12:33:23.832 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 12:33:23.832 +02:00 INF Hosting environment: Development
- ][2022-06-23 12:33:23.832 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
- ][2022-06-23 12:33:23.878 +02:00 INF Request starting HTTP/1.1 DELETE http://localhost:5116/v1.0/insuranceCompanies/5151 - -
- ][2022-06-23 12:33:23.923 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 12:33:24.358 +02:00 INF Executed DbCommand (25ms) [Parameters=[@__p_0='5151'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsuranceCompanies] AS [i]
- WHERE [i].[Id] = @__p_0
- ][2022-06-23 12:33:24.476 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host) in 525.32ms
- ][2022-06-23 12:33:24.477 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host)'
- ][2022-06-23 12:33:24.575 +02:00 ERR Insurance Company with ID 5151 has not been found.
- ][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
- ][2022-06-23 12:33:31.800 +02:00 INF Request starting HTTP/1.1 DELETE http://localhost:5116/v1.0/insuranceCompanies/5 - -
- ][2022-06-23 12:33:31.802 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 12:33:31.849 +02:00 INF Executed DbCommand (3ms) [Parameters=[@__p_0='5'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsuranceCompanies] AS [i]
- WHERE [i].[Id] = @__p_0
- ][2022-06-23 12:33:31.988 +02:00 INF Executed DbCommand (5ms) [Parameters=[@p0='5'], CommandType='"Text"', CommandTimeout='30']
- SET NOCOUNT ON;
- DELETE FROM [InsuranceCompanies]
- WHERE [Id] = @p0;
- SELECT @@ROWCOUNT;
- ][2022-06-23 12:33:32.014 +02:00 INF Executing StatusCodeResult, setting HTTP status code 200
- ][2022-06-23 12:33:32.014 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host) in 211.7203ms
- ][2022-06-23 12:33:32.014 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host)'
- ][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
- ][2022-06-23 12:33:38.936 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/5 - -
- ][2022-06-23 12:33:38.938 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 12:33:38.948 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__p_0='5'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsuranceCompanies] AS [i]
- WHERE [i].[Id] = @__p_0
- ][2022-06-23 12:33:39.021 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host) in 79.6302ms
- ][2022-06-23 12:33:39.021 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
- ][2022-06-23 12:33:39.097 +02:00 ERR Insurance company with ID 5 has not been found.
- ][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
- ][2022-06-23 12:33:49.070 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
- ][2022-06-23 12:33:49.070 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 12:33:49.087 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsuranceCompanies] AS [i]
- ][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]]'.
- ][2022-06-23 12:33:49.123 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 50.3532ms
- ][2022-06-23 12:33:49.123 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 12:38:46.776 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 12:38:46.797 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 12:38:46.816 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 12:38:46.881 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 12:38:46.883 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 12:38:46.883 +02:00 INF Hosting environment: Development
- ][2022-06-23 12:38:46.884 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
- ][2022-06-23 12:38:52.532 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/5 - -
- ][2022-06-23 12:38:52.576 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 12:38:52.950 +02:00 INF Executed DbCommand (27ms) [Parameters=[@__p_0='5'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsuranceCompanies] AS [i]
- WHERE [i].[Id] = @__p_0
- ][2022-06-23 12:38:53.062 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host) in 457.7116ms
- ][2022-06-23 12:38:53.062 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
- ][2022-06-23 12:38:53.161 +02:00 ERR Insurance company with ID 5 has not been found.
- ][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
- ][2022-06-23 12:38:57.787 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/3 - -
- ][2022-06-23 12:38:57.788 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 12:38:57.833 +02:00 INF Executed DbCommand (3ms) [Parameters=[@__p_0='3'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsuranceCompanies] AS [i]
- WHERE [i].[Id] = @__p_0
- ][2022-06-23 12:38:57.886 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Data.Entities.InsuranceCompany'.
- ][2022-06-23 12:38:57.894 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host) in 105.2728ms
- ][2022-06-23 12:38:57.894 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
- ][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
- ][2022-06-23 12:39:17.816 +02:00 INF Request starting HTTP/1.1 DELETE http://localhost:5116/v1.0/insuranceCompanies/3 - -
- ][2022-06-23 12:39:17.817 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 12:39:17.827 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__p_0='3'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsuranceCompanies] AS [i]
- WHERE [i].[Id] = @__p_0
- ][2022-06-23 12:39:17.911 +02:00 INF Executed DbCommand (2ms) [Parameters=[@p0='3'], CommandType='"Text"', CommandTimeout='30']
- SET NOCOUNT ON;
- DELETE FROM [InsuranceCompanies]
- WHERE [Id] = @p0;
- SELECT @@ROWCOUNT;
- ][2022-06-23 12:39:17.934 +02:00 INF Executing OkObjectResult, writing value of type 'MediatR.Unit'.
- ][2022-06-23 12:39:17.938 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host) in 119.0347ms
- ][2022-06-23 12:39:17.938 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.DeleteInsuranceCompany (Diligent.WebAPI.Host)'
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 13:05:29.603 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 13:05:29.625 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 13:05:29.646 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 13:05:29.711 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 13:05:29.713 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 13:05:29.714 +02:00 INF Hosting environment: Development
- ][2022-06-23 13:05:29.714 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
- ][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.
- ][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'.
- ][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
- ][2022-06-23 13:07:01.063 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 13:07:01.085 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 13:07:01.108 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 13:07:01.186 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 13:07:01.188 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 13:07:01.189 +02:00 INF Hosting environment: Development
- ][2022-06-23 13:07:01.189 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
- ][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
- ][2022-06-23 13:07:16.733 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host)'
- ][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).
- ][2022-06-23 13:07:16.883 +02:00 INF Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'.
- ][2022-06-23 13:07:16.896 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host) in 135.644ms
- ][2022-06-23 13:07:16.896 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host)'
- ][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
- ][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
- ][2022-06-23 13:07:28.173 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][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']
- SET NOCOUNT ON;
- INSERT INTO [InsuranceCompanies] ([City], [Country], [CreatedAtUtc], [DeletedAtUtc], [Fax], [LegalAddress], [LegalEmail], [Name], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
- VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10);
- SELECT [Id]
- FROM [InsuranceCompanies]
- WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
- ][2022-06-23 13:07:28.433 +02:00 INF Executing OkObjectResult, writing value of type 'Diligent.WebAPI.Data.Entities.InsuranceCompany'.
- ][2022-06-23 13:07:28.442 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host) in 268.2717ms
- ][2022-06-23 13:07:28.442 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host)'
- ][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
- ][2022-06-23 13:07:36.389 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
- ][2022-06-23 13:07:36.390 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 13:07:36.593 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsuranceCompanies] AS [i]
- ][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]]'.
- ][2022-06-23 13:07:36.617 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 223.7707ms
- ][2022-06-23 13:07:36.617 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 13:09:37.473 +02:00 INF Executed DbCommand (20ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 13:09:37.496 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 13:09:37.516 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 13:09:37.583 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 13:09:37.586 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 13:09:37.586 +02:00 INF Hosting environment: Development
- ][2022-06-23 13:09:37.586 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
- ][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
- ][2022-06-23 13:10:52.602 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host)'
- ][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).
- ][2022-06-23 13:10:52.668 +02:00 INF Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'.
- ][2022-06-23 13:10:52.679 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host) in 48.4695ms
- ][2022-06-23 13:10:52.680 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host)'
- ][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
- ][2022-06-23 13:11:10.104 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers - -
- ][2022-06-23 13:11:10.109 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 13:11:10.499 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- ][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]]'.
- ][2022-06-23 13:11:10.531 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host) in 419.521ms
- ][2022-06-23 13:11:10.532 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
- ][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
- ][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
- ][2022-06-23 13:11:25.409 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host)'
- ][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).
- ][2022-06-23 13:11:25.413 +02:00 INF Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'.
- ][2022-06-23 13:11:25.414 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host) in 5.2328ms
- ][2022-06-23 13:11:25.414 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host)'
- ][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
- ][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
- ][2022-06-23 13:11:39.416 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host)'
- ][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).
- ][2022-06-23 13:11:39.427 +02:00 INF Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'.
- ][2022-06-23 13:11:39.427 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host) in 10.2611ms
- ][2022-06-23 13:11:39.427 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host)'
- ][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
- ][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
- ][2022-06-23 13:11:52.550 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][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']
- SET NOCOUNT ON;
- INSERT INTO [InsuranceCompanies] ([City], [Country], [CreatedAtUtc], [DeletedAtUtc], [Fax], [LegalAddress], [LegalEmail], [Name], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
- VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10);
- SELECT [Id]
- FROM [InsuranceCompanies]
- WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
- ][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']
- SET NOCOUNT ON;
- INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
- VALUES (@p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21, @p22, @p23);
- SELECT [Id]
- FROM [Insurers]
- WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
- ][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']
- SET NOCOUNT ON;
- INSERT INTO [InsurancePolicies] ([CreatedAtUtc], [DeletedAtUtc], [EndDate], [InsurerId], [Premium], [StartDate], [Type], [UpdatedAtUtc])
- VALUES (@p24, @p25, @p26, @p27, @p28, @p29, @p30, @p31);
- SELECT [Id]
- FROM [InsurancePolicies]
- WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
- ][2022-06-23 13:11:52.893 +02:00 INF Executing CreatedAtActionResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurancePolicyDTOs.InsurancePolicyReadDTO'.
- ][2022-06-23 13:11:52.922 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host) in 372.2376ms
- ][2022-06-23 13:11:52.922 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.CreateInsurancePolicy (Diligent.WebAPI.Host)'
- ][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
- ][2022-06-23 13:12:10.882 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurancePolicies - -
- ][2022-06-23 13:12:10.883 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicies (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 13:12:10.908 +02:00 INF Executed DbCommand (10ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsurancePolicies] AS [i]
- INNER JOIN [Insurers] AS [i0] ON [i].[InsurerId] = [i0].[Id]
- INNER JOIN [InsuranceCompanies] AS [i1] ON [i0].[InsuranceCompanyId] = [i1].[Id]
- ][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]]'.
- ][2022-06-23 13:12:10.918 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicies (Diligent.WebAPI.Host) in 33.5329ms
- ][2022-06-23 13:12:10.918 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicies (Diligent.WebAPI.Host)'
- ][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
- ][2022-06-23 13:12:39.408 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
- ][2022-06-23 13:12:39.502 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
- ][2022-06-23 13:12:39.502 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
- ][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
- ][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
- ][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
- ][2022-06-23 13:12:39.689 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
- ][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
- ][2022-06-23 13:12:52.177 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
- ][2022-06-23 13:12:52.177 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 13:12:52.188 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsuranceCompanies] AS [i]
- ][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]]'.
- ][2022-06-23 13:12:52.198 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 18.9864ms
- ][2022-06-23 13:12:52.198 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
- ][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
- ][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
- ][2022-06-23 13:13:18.575 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][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']
- SET NOCOUNT ON;
- INSERT INTO [InsuranceCompanies] ([City], [Country], [CreatedAtUtc], [DeletedAtUtc], [Fax], [LegalAddress], [LegalEmail], [Name], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
- VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10);
- SELECT [Id]
- FROM [InsuranceCompanies]
- WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
- ][2022-06-23 13:13:18.602 +02:00 INF Executing OkObjectResult, writing value of type 'Diligent.WebAPI.Data.Entities.InsuranceCompany'.
- ][2022-06-23 13:13:18.602 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host) in 24.9185ms
- ][2022-06-23 13:13:18.602 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host)'
- ][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
- ][2022-06-23 13:13:42.949 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
- ][2022-06-23 13:13:42.949 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 13:13:42.954 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsuranceCompanies] AS [i]
- ][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]]'.
- ][2022-06-23 13:13:42.954 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 5.236ms
- ][2022-06-23 13:13:42.954 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 13:15:29.727 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 13:15:29.749 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 13:15:29.770 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 13:15:29.839 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 13:15:29.841 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 13:15:29.842 +02:00 INF Hosting environment: Development
- ][2022-06-23 13:15:29.842 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
- ][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
- ][2022-06-23 13:16:25.832 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][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']
- SET NOCOUNT ON;
- INSERT INTO [InsuranceCompanies] ([City], [Country], [CreatedAtUtc], [DeletedAtUtc], [Fax], [LegalAddress], [LegalEmail], [Name], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
- VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10);
- SELECT [Id]
- FROM [InsuranceCompanies]
- WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
- ][2022-06-23 13:16:26.252 +02:00 INF Executing OkObjectResult, writing value of type 'Diligent.WebAPI.Data.Entities.InsuranceCompany'.
- ][2022-06-23 13:16:26.276 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host) in 417.4641ms
- ][2022-06-23 13:16:26.276 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.CreateInsuranceCompany (Diligent.WebAPI.Host)'
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 13:44:55.028 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 13:44:55.049 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 13:44:55.069 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 13:44:55.137 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 13:44:55.140 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 13:44:55.140 +02:00 INF Hosting environment: Development
- ][2022-06-23 13:44:55.140 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\MediatR\Diligent.WebAPI.Host\
- ][2022-06-23 13:45:00.180 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
- ][2022-06-23 13:45:00.318 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
- ][2022-06-23 13:45:00.321 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
- ][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
- ][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
- ][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
- ][2022-06-23 13:45:00.521 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
- ][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
- ][2022-06-23 13:45:05.264 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
- ][2022-06-23 13:45:05.272 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 13:45:05.560 +02:00 INF Executed DbCommand (11ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsuranceCompanies] AS [i]
- ][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]]'.
- ][2022-06-23 13:45:05.654 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 364.5711ms
- ][2022-06-23 13:45:05.655 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
- ][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
- ][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
- ][2022-06-23 13:45:31.613 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.UpdateInsuranceCompany (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 13:45:31.772 +02:00 INF Executed DbCommand (17ms) [Parameters=[@__p_0='4'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsuranceCompanies] AS [i]
- WHERE [i].[Id] = @__p_0
- ][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']
- SET NOCOUNT ON;
- UPDATE [InsuranceCompanies] SET [Name] = @p0
- WHERE [Id] = @p1;
- SELECT @@ROWCOUNT;
- ][2022-06-23 13:45:31.873 +02:00 INF Executing OkObjectResult, writing value of type 'System.String'.
- ][2022-06-23 13:45:31.874 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.UpdateInsuranceCompany (Diligent.WebAPI.Host) in 247.1654ms
- ][2022-06-23 13:45:31.874 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.UpdateInsuranceCompany (Diligent.WebAPI.Host)'
- ][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
- ][2022-06-23 13:45:38.173 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
- ][2022-06-23 13:45:38.174 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 13:45:38.179 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsuranceCompanies] AS [i]
- ][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]]'.
- ][2022-06-23 13:45:38.180 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 6.1738ms
- ][2022-06-23 13:45:38.180 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 14:29:10.975 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 14:29:10.996 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 14:29:11.016 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 14:29:11.134 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 14:29:11.137 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 14:29:11.137 +02:00 INF Hosting environment: Development
- ][2022-06-23 14:29:11.137 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
- ][2022-06-23 14:29:12.445 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 14:31:37.135 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 14:31:37.156 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 14:31:37.176 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 14:31:37.272 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 14:31:37.275 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 14:31:37.275 +02:00 INF Hosting environment: Development
- ][2022-06-23 14:31:37.275 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
- ][2022-06-23 14:31:42.355 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
- ][2022-06-23 14:31:42.523 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
- ][2022-06-23 14:31:42.523 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
- ][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
- ][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
- ][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
- ][2022-06-23 14:31:42.631 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
- ][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
- ][2022-06-23 14:31:51.423 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers - -
- ][2022-06-23 14:31:51.434 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 14:31:51.838 +02:00 INF Executed DbCommand (11ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- ][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]]'.
- ][2022-06-23 14:31:51.960 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host) in 505.2036ms
- ][2022-06-23 14:31:51.960 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 14:45:28.216 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 14:45:28.239 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 14:45:28.261 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 14:45:28.334 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 14:45:28.336 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 14:45:28.337 +02:00 INF Hosting environment: Development
- ][2022-06-23 14:45:28.337 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
- ][2022-06-23 14:45:33.111 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
- ][2022-06-23 14:45:33.259 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
- ][2022-06-23 14:45:33.262 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
- ][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
- ][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
- ][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
- ][2022-06-23 14:45:33.472 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
- ][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
- ][2022-06-23 14:45:43.245 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers/10002 - -
- ][2022-06-23 14:45:43.256 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 14:45:43.658 +02:00 INF Executed DbCommand (25ms) [Parameters=[@__id_0='10002'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- WHERE [i].[Id] = @__id_0
- ][2022-06-23 14:45:43.765 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
- ][2022-06-23 14:45:43.780 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host) in 497.1806ms
- ][2022-06-23 14:45:43.781 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
- ][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
- ][2022-06-23 14:45:51.268 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers/1000222 - -
- ][2022-06-23 14:45:51.268 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 14:45:51.316 +02:00 INF Executed DbCommand (3ms) [Parameters=[@__id_0='1000222'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- WHERE [i].[Id] = @__id_0
- ][2022-06-23 14:45:51.317 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
- ][2022-06-23 14:45:51.317 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host) in 48.3865ms
- ][2022-06-23 14:45:51.317 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
- ][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
- ][2022-06-23 14:46:00.432 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers/1000222123123 - -
- ][2022-06-23 14:46:00.432 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 14:46:00.438 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__id_0='1000222123123'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- WHERE [i].[Id] = @__id_0
- ][2022-06-23 14:46:00.439 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
- ][2022-06-23 14:46:00.439 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host) in 6.7576ms
- ][2022-06-23 14:46:00.439 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
- ][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
- ][2022-06-23 14:46:14.562 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/123213123 - -
- ][2022-06-23 14:46:14.562 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 14:46:14.579 +02:00 INF Executed DbCommand (3ms) [Parameters=[@__p_0='123213123'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsuranceCompanies] AS [i]
- WHERE [i].[Id] = @__p_0
- ][2022-06-23 14:46:14.670 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host) in 105.7503ms
- ][2022-06-23 14:46:14.671 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
- ][2022-06-23 14:46:14.755 +02:00 ERR Insurance company with ID 123213123 has not been found.
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 14:47:00.634 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 14:47:00.655 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 14:47:00.674 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 14:47:00.741 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 14:47:00.743 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 14:47:00.744 +02:00 INF Hosting environment: Development
- ][2022-06-23 14:47:00.744 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
- ][2022-06-23 14:47:02.497 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
- ][2022-06-23 14:47:02.640 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
- ][2022-06-23 14:47:02.640 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
- ][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
- ][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
- ][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
- ][2022-06-23 14:47:02.851 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
- ][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
- ][2022-06-23 14:47:14.342 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers/10002030 - -
- ][2022-06-23 14:47:14.351 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 14:47:14.761 +02:00 INF Executed DbCommand (26ms) [Parameters=[@__id_0='10002030'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- WHERE [i].[Id] = @__id_0
- ][2022-06-23 14:47:14.776 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
- ][2022-06-23 14:47:14.789 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host) in 409.4339ms
- ][2022-06-23 14:47:14.789 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
- ][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
- ][2022-06-23 14:47:44.228 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurancePolicies/1020302103123 - -
- ][2022-06-23 14:47:44.228 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicy (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 14:47:44.292 +02:00 INF Executed DbCommand (4ms) [Parameters=[@__id_0='1020302103123'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsurancePolicies] AS [i]
- INNER JOIN [Insurers] AS [i0] ON [i].[InsurerId] = [i0].[Id]
- INNER JOIN [InsuranceCompanies] AS [i1] ON [i0].[InsuranceCompanyId] = [i1].[Id]
- WHERE [i].[Id] = @__id_0
- ][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]]'.
- ][2022-06-23 14:47:44.294 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicy (Diligent.WebAPI.Host) in 61.1901ms
- ][2022-06-23 14:47:44.294 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicy (Diligent.WebAPI.Host)'
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 14:49:08.973 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 14:49:08.994 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 14:49:09.015 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 14:49:09.082 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 14:49:09.085 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 14:49:09.085 +02:00 INF Hosting environment: Development
- ][2022-06-23 14:49:09.085 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
- ][2022-06-23 14:49:15.582 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurancePolicies/1020302103123 - -
- ][2022-06-23 14:49:15.629 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicy (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 14:49:16.053 +02:00 INF Executed DbCommand (25ms) [Parameters=[@__id_0='1020302103123'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsurancePolicies] AS [i]
- INNER JOIN [Insurers] AS [i0] ON [i].[InsurerId] = [i0].[Id]
- INNER JOIN [InsuranceCompanies] AS [i1] ON [i0].[InsuranceCompanyId] = [i1].[Id]
- WHERE [i].[Id] = @__id_0
- ][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]]'.
- ][2022-06-23 14:49:16.090 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicy (Diligent.WebAPI.Host) in 434.4616ms
- ][2022-06-23 14:49:16.091 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicy (Diligent.WebAPI.Host)'
- ][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
- ][2022-06-23 14:49:20.508 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers/10002030 - -
- ][2022-06-23 14:49:20.509 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 14:49:20.565 +02:00 INF Executed DbCommand (3ms) [Parameters=[@__id_0='10002030'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- WHERE [i].[Id] = @__id_0
- ][2022-06-23 14:49:20.656 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host) in 142.8904ms
- ][2022-06-23 14:49:20.656 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
- ][2022-06-23 14:49:20.744 +02:00 ERR Insurer with ID 10002030 has not been found.
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 15:10:56.320 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 15:10:56.342 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 15:10:56.362 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 15:10:56.437 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 15:10:56.440 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 15:10:56.440 +02:00 INF Hosting environment: Development
- ][2022-06-23 15:10:56.440 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
- ][2022-06-23 15:11:00.149 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
- ][2022-06-23 15:11:00.295 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
- ][2022-06-23 15:11:00.295 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
- ][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
- ][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
- ][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
- ][2022-06-23 15:11:00.481 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
- ][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
- ][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
- ][2022-06-23 15:11:10.248 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][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']
- SET NOCOUNT ON;
- INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
- VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
- SELECT [Id]
- FROM [Insurers]
- WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
- ][2022-06-23 15:11:10.670 +02:00 INF Executing CreatedResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
- ][2022-06-23 15:11:10.680 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host) in 405.0936ms
- ][2022-06-23 15:11:10.681 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][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
- ][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
- ][2022-06-23 15:11:25.586 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][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']
- SET NOCOUNT ON;
- INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
- VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
- SELECT [Id]
- FROM [Insurers]
- WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
- ][2022-06-23 15:11:25.660 +02:00 INF Executing CreatedResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
- ][2022-06-23 15:11:25.660 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host) in 73.5647ms
- ][2022-06-23 15:11:25.660 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][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
- ][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
- ][2022-06-23 15:11:37.357 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][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']
- SET NOCOUNT ON;
- INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
- VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
- SELECT [Id]
- FROM [Insurers]
- WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
- ][2022-06-23 15:11:37.369 +02:00 INF Executing CreatedResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
- ][2022-06-23 15:11:37.369 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host) in 11.7397ms
- ][2022-06-23 15:11:37.369 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][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
- ][2022-06-23 15:11:49.325 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers/0 - -
- ][2022-06-23 15:11:49.326 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 15:11:49.590 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__id_0='0'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- WHERE [i].[Id] = @__id_0
- ][2022-06-23 15:11:49.686 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host) in 356.5287ms
- ][2022-06-23 15:11:49.686 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
- ][2022-06-23 15:11:49.773 +02:00 ERR Insurer with ID 0 has not been found.
- ][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
- ][2022-06-23 15:11:58.901 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers - -
- ][2022-06-23 15:11:58.901 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 15:11:58.917 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- ][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]]'.
- ][2022-06-23 15:11:58.959 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host) in 55.482ms
- ][2022-06-23 15:11:58.959 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
- ][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
- ][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
- ][2022-06-23 15:12:32.311 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][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']
- SET NOCOUNT ON;
- INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
- VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
- SELECT [Id]
- FROM [Insurers]
- WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
- ][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'.
- Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
- ---> 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'.
- The statement has been terminated.
- at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
- at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
- --- End of stack trace from previous location ---
- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
- --- End of stack trace from previous location ---
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- ClientConnectionId:ce0fdaf9-0559-4b5c-831b-b1d86e200b6f
- Error Number:547,State:0,Class:16
- --- End of inner exception stack trace ---
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
- ---> 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'.
- The statement has been terminated.
- at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
- at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
- --- End of stack trace from previous location ---
- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
- --- End of stack trace from previous location ---
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- ClientConnectionId:ce0fdaf9-0559-4b5c-831b-b1d86e200b6f
- Error Number:547,State:0,Class:16
- --- End of inner exception stack trace ---
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- ][2022-06-23 15:12:32.465 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host) in 154.0282ms
- ][2022-06-23 15:12:32.465 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][2022-06-23 15:12:32.546 +02:00 ERR An error occurred while saving the entity changes. See the inner exception for details.
- ][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
- ][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
- ][2022-06-23 15:12:42.547 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][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']
- SET NOCOUNT ON;
- INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
- VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
- SELECT [Id]
- FROM [Insurers]
- WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
- ][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'.
- Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
- ---> 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'.
- The statement has been terminated.
- at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
- at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
- --- End of stack trace from previous location ---
- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
- --- End of stack trace from previous location ---
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- ClientConnectionId:ce0fdaf9-0559-4b5c-831b-b1d86e200b6f
- Error Number:547,State:0,Class:16
- --- End of inner exception stack trace ---
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
- ---> 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'.
- The statement has been terminated.
- at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
- at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
- --- End of stack trace from previous location ---
- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
- --- End of stack trace from previous location ---
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- ClientConnectionId:ce0fdaf9-0559-4b5c-831b-b1d86e200b6f
- Error Number:547,State:0,Class:16
- --- End of inner exception stack trace ---
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- ][2022-06-23 15:12:42.675 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host) in 128.6185ms
- ][2022-06-23 15:12:42.676 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][2022-06-23 15:12:42.780 +02:00 ERR An error occurred while saving the entity changes. See the inner exception for details.
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 15:13:37.436 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 15:13:37.458 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 15:13:37.478 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 15:13:37.544 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 15:13:37.547 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 15:13:37.547 +02:00 INF Hosting environment: Development
- ][2022-06-23 15:13:37.547 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
- ][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
- ][2022-06-23 15:13:41.925 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][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']
- SET NOCOUNT ON;
- INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
- VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
- SELECT [Id]
- FROM [Insurers]
- WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
- ][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'.
- Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
- ---> 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'.
- The statement has been terminated.
- at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
- at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
- at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
- --- End of stack trace from previous location ---
- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
- --- End of stack trace from previous location ---
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- ClientConnectionId:e6ecec89-4fd4-423f-af25-8247db6575f2
- Error Number:547,State:0,Class:16
- --- End of inner exception stack trace ---
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
- ---> 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'.
- The statement has been terminated.
- at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
- at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
- at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
- --- End of stack trace from previous location ---
- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
- --- End of stack trace from previous location ---
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- ClientConnectionId:e6ecec89-4fd4-423f-af25-8247db6575f2
- Error Number:547,State:0,Class:16
- --- End of inner exception stack trace ---
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- ][2022-06-23 15:13:42.408 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host) in 457.6185ms
- ][2022-06-23 15:13:42.410 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][2022-06-23 15:13:42.508 +02:00 ERR An error occurred while saving the entity changes. See the inner exception for details.
- ][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
- ][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
- ][2022-06-23 15:13:51.078 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][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']
- SET NOCOUNT ON;
- INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
- VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
- SELECT [Id]
- FROM [Insurers]
- WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
- ][2022-06-23 15:13:51.167 +02:00 INF Executing CreatedResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
- ][2022-06-23 15:13:51.172 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host) in 93.1341ms
- ][2022-06-23 15:13:51.172 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 15:16:12.051 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 15:16:12.073 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 15:16:12.093 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 15:16:12.161 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 15:16:12.164 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 15:16:12.164 +02:00 INF Hosting environment: Development
- ][2022-06-23 15:16:12.164 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
- ][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
- ][2022-06-23 15:16:13.497 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][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']
- SET NOCOUNT ON;
- INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
- VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
- SELECT [Id]
- FROM [Insurers]
- WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
- ][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.
- ][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'.
- ][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
- ][2022-06-23 15:19:47.456 +02:00 INF Executed DbCommand (17ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 15:19:47.479 +02:00 INF Executed DbCommand (14ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 15:19:47.500 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 15:19:47.578 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 15:19:47.581 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 15:19:47.581 +02:00 INF Hosting environment: Development
- ][2022-06-23 15:19:47.581 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
- ][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
- ][2022-06-23 15:19:47.905 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][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']
- SET NOCOUNT ON;
- INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
- VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
- SELECT [Id]
- FROM [Insurers]
- WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
- ][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.
- ][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'.
- ][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
- ][2022-06-23 15:23:54.231 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 15:23:54.254 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 15:23:54.274 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 15:23:54.347 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 15:23:54.350 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 15:23:54.350 +02:00 INF Hosting environment: Development
- ][2022-06-23 15:23:54.350 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
- ][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
- ][2022-06-23 15:23:57.499 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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.
- ][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'.
- ][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
- ][2022-06-23 15:24:41.606 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 15:24:41.627 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 15:24:41.646 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 15:24:41.712 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 15:24:41.715 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 15:24:41.715 +02:00 INF Hosting environment: Development
- ][2022-06-23 15:24:41.715 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
- ][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
- ][2022-06-23 15:24:49.491 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][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']
- SET NOCOUNT ON;
- INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
- VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
- SELECT [Id]
- FROM [Insurers]
- WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
- ][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.
- ][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'.
- ][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
- ][2022-06-23 15:25:41.683 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 15:25:41.705 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 15:25:41.725 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 15:25:41.802 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 15:25:41.805 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 15:25:41.805 +02:00 INF Hosting environment: Development
- ][2022-06-23 15:25:41.805 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
- ][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
- ][2022-06-23 15:25:42.919 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][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']
- SET NOCOUNT ON;
- INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
- VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
- SELECT [Id]
- FROM [Insurers]
- WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
- ][2022-06-23 15:26:09.071 +02:00 INF Executing CreatedResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
- ][2022-06-23 15:26:09.086 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host) in 26141.0465ms
- ][2022-06-23 15:26:09.087 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][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
- ][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
- ][2022-06-23 15:26:21.300 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][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']
- SET NOCOUNT ON;
- INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
- VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
- SELECT [Id]
- FROM [Insurers]
- WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
- ][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'.
- Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
- ---> 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'.
- The statement has been terminated.
- at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
- at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
- at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
- --- End of stack trace from previous location ---
- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
- --- End of stack trace from previous location ---
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- ClientConnectionId:b7bc75b1-c0c0-4b5a-b941-cfd9a0b7efa2
- Error Number:547,State:0,Class:16
- --- End of inner exception stack trace ---
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
- ---> 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'.
- The statement has been terminated.
- at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
- at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
- at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
- --- End of stack trace from previous location ---
- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
- --- End of stack trace from previous location ---
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- ClientConnectionId:b7bc75b1-c0c0-4b5a-b941-cfd9a0b7efa2
- Error Number:547,State:0,Class:16
- --- End of inner exception stack trace ---
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- ][2022-06-23 15:26:26.224 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host) in 4923.5076ms
- ][2022-06-23 15:26:26.225 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][2022-06-23 15:26:26.321 +02:00 ERR An error occurred while saving the entity changes. See the inner exception for details.
- ][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
- ][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
- ][2022-06-23 15:26:31.796 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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.
- ][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'.
- ][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
- ][2022-06-23 15:38:31.894 +02:00 INF Executed DbCommand (17ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 15:38:31.919 +02:00 INF Executed DbCommand (14ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 15:38:31.940 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 15:38:32.021 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 15:38:32.024 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 15:38:32.024 +02:00 INF Hosting environment: Development
- ][2022-06-23 15:38:32.024 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
- ][2022-06-23 15:38:40.056 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
- ][2022-06-23 15:38:40.201 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
- ][2022-06-23 15:38:40.201 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
- ][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
- ][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
- ][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
- ][2022-06-23 15:38:40.398 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
- ][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
- ][2022-06-23 15:38:47.589 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers - -
- ][2022-06-23 15:38:47.606 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 15:38:47.978 +02:00 INF Executed DbCommand (10ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- ][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]]'.
- ][2022-06-23 15:38:48.109 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host) in 484.0775ms
- ][2022-06-23 15:38:48.109 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
- ][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
- ][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
- ][2022-06-23 15:39:13.229 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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.
- ][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'.
- ][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
- ][2022-06-23 15:39:58.059 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 15:39:58.082 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 15:39:58.103 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 15:39:58.176 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 15:39:58.178 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 15:39:58.178 +02:00 INF Hosting environment: Development
- ][2022-06-23 15:39:58.178 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
- ][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
- ][2022-06-23 15:39:59.312 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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.
- ][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'.
- ][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
- ][2022-06-23 15:42:33.947 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 15:42:33.968 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 15:42:33.989 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 15:42:34.056 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 15:42:34.059 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 15:42:34.059 +02:00 INF Hosting environment: Development
- ][2022-06-23 15:42:34.059 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
- ][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
- ][2022-06-23 15:42:37.208 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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.
- ][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'.
- ][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
- ][2022-06-23 15:43:21.164 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 15:43:21.186 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 15:43:21.207 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 15:43:21.311 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 15:43:21.315 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 15:43:21.315 +02:00 INF Hosting environment: Development
- ][2022-06-23 15:43:21.315 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
- ][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
- ][2022-06-23 15:43:22.335 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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.
- ][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'.
- ][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
- ][2022-06-23 15:45:11.589 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 15:45:11.610 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 15:45:11.631 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 15:45:11.698 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 15:45:11.701 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 15:45:11.701 +02:00 INF Hosting environment: Development
- ][2022-06-23 15:45:11.701 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
- ][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
- ][2022-06-23 15:45:16.165 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 15:45:20.925 +02:00 INF Executed DbCommand (26ms) [Parameters=[@__id_0='20013'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- WHERE [i].[Id] = @__id_0
- ][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']
- SET NOCOUNT ON;
- UPDATE [Insurers] SET [DateOfBirth] = @p0, [FirstName] = @p1, [InsuranceCompanyId] = @p2
- WHERE [Id] = @p3;
- SELECT @@ROWCOUNT;
- ][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'.
- Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
- ---> 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'.
- The statement has been terminated.
- at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
- at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
- at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
- --- End of stack trace from previous location ---
- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
- --- End of stack trace from previous location ---
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- ClientConnectionId:cbb35646-59da-4eae-b330-6056534cd2ba
- Error Number:547,State:0,Class:16
- --- End of inner exception stack trace ---
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
- ---> 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'.
- The statement has been terminated.
- at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
- at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
- at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
- --- End of stack trace from previous location ---
- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
- --- End of stack trace from previous location ---
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- ClientConnectionId:cbb35646-59da-4eae-b330-6056534cd2ba
- Error Number:547,State:0,Class:16
- --- End of inner exception stack trace ---
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- ][2022-06-23 15:45:26.056 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host) in 9865.172ms
- ][2022-06-23 15:45:26.057 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
- ][2022-06-23 15:45:26.166 +02:00 ERR An error occurred while saving the entity changes. See the inner exception for details.
- ][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
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 15:45:40.621 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 15:45:40.643 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 15:45:40.663 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 15:45:40.727 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 15:45:40.730 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 15:45:40.730 +02:00 INF Hosting environment: Development
- ][2022-06-23 15:45:40.730 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
- ][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
- ][2022-06-23 15:45:41.015 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 15:46:03.798 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][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
- ][2022-06-23 15:46:07.366 +02:00 INF Executed DbCommand (50ms) [Parameters=[@__id_0='20013'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- WHERE [i].[Id] = @__id_0
- ][2022-06-23 15:46:07.366 +02:00 INF Executed DbCommand (20ms) [Parameters=[@__id_0='20013'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- WHERE [i].[Id] = @__id_0
- ][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']
- SET NOCOUNT ON;
- UPDATE [Insurers] SET [DateOfBirth] = @p0, [FirstName] = @p1, [InsuranceCompanyId] = @p2
- WHERE [Id] = @p3;
- SELECT @@ROWCOUNT;
- ][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']
- SET NOCOUNT ON;
- UPDATE [Insurers] SET [DateOfBirth] = @p0, [FirstName] = @p1
- WHERE [Id] = @p2;
- SELECT @@ROWCOUNT;
- ][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'.
- Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
- ---> 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'.
- The statement has been terminated.
- at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
- at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
- at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
- --- End of stack trace from previous location ---
- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
- --- End of stack trace from previous location ---
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- ClientConnectionId:f42f93bd-09f2-4bba-8a6f-dad7ac2c7f31
- Error Number:547,State:0,Class:16
- --- End of inner exception stack trace ---
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
- ---> 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'.
- The statement has been terminated.
- at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
- at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
- at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
- --- End of stack trace from previous location ---
- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
- --- End of stack trace from previous location ---
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- ClientConnectionId:f42f93bd-09f2-4bba-8a6f-dad7ac2c7f31
- Error Number:547,State:0,Class:16
- --- End of inner exception stack trace ---
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- ][2022-06-23 15:46:18.609 +02:00 INF Executing StatusCodeResult, setting HTTP status code 200
- ][2022-06-23 15:46:18.610 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host) in 14811.1367ms
- ][2022-06-23 15:46:18.610 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host) in 37568.9283ms
- ][2022-06-23 15:46:18.611 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
- ][2022-06-23 15:46:18.611 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
- ][2022-06-23 15:46:21.887 +02:00 ERR An error occurred while saving the entity changes. See the inner exception for details.
- ][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
- ][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
- ][2022-06-23 15:46:38.469 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
- ][2022-06-23 15:46:38.471 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 15:46:38.487 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [InsuranceCompanies] AS [i]
- ][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]]'.
- ][2022-06-23 15:46:38.516 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 41.2158ms
- ][2022-06-23 15:46:38.516 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 15:47:16.601 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 15:47:16.623 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 15:47:16.643 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 15:47:16.707 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 15:47:16.710 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 15:47:16.710 +02:00 INF Hosting environment: Development
- ][2022-06-23 15:47:16.710 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
- ][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
- ][2022-06-23 15:47:22.354 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 15:47:22.800 +02:00 INF Executed DbCommand (26ms) [Parameters=[@__id_0='20013'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- WHERE [i].[Id] = @__id_0
- ][2022-06-23 15:47:22.949 +02:00 INF Executing StatusCodeResult, setting HTTP status code 200
- ][2022-06-23 15:47:22.953 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host) in 574.4739ms
- ][2022-06-23 15:47:22.954 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
- ][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
- ][2022-06-23 15:47:42.923 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers/20013 - -
- ][2022-06-23 15:47:42.927 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 15:47:42.983 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__id_0='20013'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- WHERE [i].[Id] = @__id_0
- ][2022-06-23 15:47:42.995 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
- ][2022-06-23 15:47:43.008 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host) in 78.0433ms
- ][2022-06-23 15:47:43.008 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
- ][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
- ][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
- ][2022-06-23 15:47:50.868 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 15:47:50.874 +02:00 INF Executed DbCommand (3ms) [Parameters=[@__id_0='20013'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- WHERE [i].[Id] = @__id_0
- ][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']
- SET NOCOUNT ON;
- UPDATE [Insurers] SET [FirstName] = @p0
- WHERE [Id] = @p1;
- SELECT @@ROWCOUNT;
- ][2022-06-23 15:47:50.955 +02:00 INF Executing StatusCodeResult, setting HTTP status code 200
- ][2022-06-23 15:47:50.956 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host) in 87.2486ms
- ][2022-06-23 15:47:50.956 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
- ][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
- ][2022-06-23 15:47:57.536 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers/20013 - -
- ][2022-06-23 15:47:57.536 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 15:47:57.540 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__id_0='20013'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- WHERE [i].[Id] = @__id_0
- ][2022-06-23 15:47:57.540 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse'.
- ][2022-06-23 15:47:57.540 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host) in 4.1898ms
- ][2022-06-23 15:47:57.540 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
- ][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
- ][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
- ][2022-06-23 15:48:02.665 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 15:48:02.669 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__id_0='200134'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- WHERE [i].[Id] = @__id_0
- ][2022-06-23 15:48:02.761 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host) in 96.0497ms
- ][2022-06-23 15:48:02.761 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
- ][2022-06-23 15:48:02.847 +02:00 ERR Insurer with id 200134 not found.
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 15:57:43.541 +02:00 INF Executed DbCommand (19ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 15:57:43.566 +02:00 INF Executed DbCommand (14ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 15:57:43.587 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 15:57:43.664 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 15:57:43.667 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 15:57:43.667 +02:00 INF Hosting environment: Development
- ][2022-06-23 15:57:43.667 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
- ][2022-06-23 15:57:53.078 +02:00 INF Request starting HTTP/1.1 DELETE http://localhost:5116/v1.0/insurers/20013 - -
- ][2022-06-23 15:57:53.127 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.DeleteInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 15:57:53.556 +02:00 INF Executed DbCommand (26ms) [Parameters=[@__id_0='20013'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- WHERE [i].[Id] = @__id_0
- ][2022-06-23 15:57:53.743 +02:00 INF Executed DbCommand (5ms) [Parameters=[@p0='20013'], CommandType='"Text"', CommandTimeout='30']
- SET NOCOUNT ON;
- DELETE FROM [Insurers]
- WHERE [Id] = @p0;
- SELECT @@ROWCOUNT;
- ][2022-06-23 15:57:53.774 +02:00 INF Executing StatusCodeResult, setting HTTP status code 204
- ][2022-06-23 15:57:53.779 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.DeleteInsurer (Diligent.WebAPI.Host) in 623.6765ms
- ][2022-06-23 15:57:53.779 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.DeleteInsurer (Diligent.WebAPI.Host)'
- ][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
- ][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
- ][2022-06-23 15:57:57.590 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 15:57:57.671 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__id_0='200134'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- WHERE [i].[Id] = @__id_0
- ][2022-06-23 15:57:57.765 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host) in 170.1916ms
- ][2022-06-23 15:57:57.765 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.UpdateInsurer (Diligent.WebAPI.Host)'
- ][2022-06-23 15:57:57.854 +02:00 ERR Insurer with id 200134 not found.
- ][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
- ][2022-06-23 15:58:05.234 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers/20013 - -
- ][2022-06-23 15:58:05.236 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 15:58:05.246 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__id_0='20013'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- WHERE [i].[Id] = @__id_0
- ][2022-06-23 15:58:05.313 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host) in 74.1078ms
- ][2022-06-23 15:58:05.313 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurer (Diligent.WebAPI.Host)'
- ][2022-06-23 15:58:05.385 +02:00 ERR Insurer with ID 20013 has not been found.
- ][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
- ][2022-06-23 15:58:09.534 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers - -
- ][2022-06-23 15:58:09.534 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 15:58:09.557 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- ][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]]'.
- ][2022-06-23 15:58:09.594 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host) in 57.7952ms
- ][2022-06-23 15:58:09.594 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
- ][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
- ][2022-06-23 15:58:16.189 +02:00 INF Request starting HTTP/1.1 DELETE http://localhost:5116/v1.0/insurers/20013 - -
- ][2022-06-23 15:58:16.189 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.DeleteInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 15:58:16.193 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__id_0='20013'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- WHERE [i].[Id] = @__id_0
- ][2022-06-23 15:58:16.269 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.DeleteInsurer (Diligent.WebAPI.Host) in 80.1132ms
- ][2022-06-23 15:58:16.270 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.DeleteInsurer (Diligent.WebAPI.Host)'
- ][2022-06-23 15:58:16.336 +02:00 ERR Insurer with ID 20013 has not been found.
- ][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
- ][2022-06-23 15:58:22.261 +02:00 INF Request starting HTTP/1.1 DELETE http://localhost:5116/v1.0/insurers/20012 - -
- ][2022-06-23 15:58:22.261 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.DeleteInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 15:58:22.265 +02:00 INF Executed DbCommand (2ms) [Parameters=[@__id_0='20012'], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- WHERE [i].[Id] = @__id_0
- ][2022-06-23 15:58:22.269 +02:00 INF Executed DbCommand (2ms) [Parameters=[@p0='20012'], CommandType='"Text"', CommandTimeout='30']
- SET NOCOUNT ON;
- DELETE FROM [Insurers]
- WHERE [Id] = @p0;
- SELECT @@ROWCOUNT;
- ][2022-06-23 15:58:22.273 +02:00 INF Executing StatusCodeResult, setting HTTP status code 204
- ][2022-06-23 15:58:22.273 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.DeleteInsurer (Diligent.WebAPI.Host) in 11.9221ms
- ][2022-06-23 15:58:22.274 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.DeleteInsurer (Diligent.WebAPI.Host)'
- ][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
- ][2022-06-23 15:58:35.239 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers - -
- ][2022-06-23 15:58:35.240 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][2022-06-23 15:58:35.243 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- 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]
- FROM [Insurers] AS [i]
- INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
- ][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]]'.
- ][2022-06-23 15:58:35.245 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host) in 4.7799ms
- ][2022-06-23 15:58:35.245 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
- ][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
- ][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.
- ][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'.
- ][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
- ][2022-06-23 16:00:16.447 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT 1
- ][2022-06-23 16:00:16.470 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
- ][2022-06-23 16:00:16.489 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
- SELECT [MigrationId], [ProductVersion]
- FROM [__EFMigrationsHistory]
- ORDER BY [MigrationId];
- ][2022-06-23 16:00:16.556 +02:00 INF Now listening on: http://localhost:5116
- ][2022-06-23 16:00:16.559 +02:00 INF Application started. Press Ctrl+C to shut down.
- ][2022-06-23 16:00:16.559 +02:00 INF Hosting environment: Development
- ][2022-06-23 16:00:16.559 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
- ][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
- ][2022-06-23 16:00:46.474 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][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).
- ][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
- ][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']
- SET NOCOUNT ON;
- INSERT INTO [Insurers] ([Address], [City], [Country], [CreatedAtUtc], [DateOfBirth], [DeletedAtUtc], [Email], [FirstName], [InsuranceCompanyId], [LastName], [PhoneNumber], [PostalCode], [UpdatedAtUtc])
- VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12);
- SELECT [Id]
- FROM [Insurers]
- WHERE @@ROWCOUNT = 1 AND [Id] = scope_identity();
- ][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'.
- Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
- ---> 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'.
- The statement has been terminated.
- at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
- at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
- at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
- --- End of stack trace from previous location ---
- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
- --- End of stack trace from previous location ---
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- ClientConnectionId:41547195-6633-4df6-84c1-ab7c8e55dd8b
- Error Number:547,State:0,Class:16
- --- End of inner exception stack trace ---
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
- ---> 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'.
- The statement has been terminated.
- at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__188_0(Task`1 result)
- at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
- at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
- --- End of stack trace from previous location ---
- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
- --- End of stack trace from previous location ---
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- ClientConnectionId:41547195-6633-4df6-84c1-ab7c8e55dd8b
- Error Number:547,State:0,Class:16
- --- End of inner exception stack trace ---
- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)
- at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
- ][2022-06-23 16:00:47.038 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host) in 538.328ms
- ][2022-06-23 16:00:47.039 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.CreateInsurer (Diligent.WebAPI.Host)'
- ][2022-06-23 16:00:47.150 +02:00 ERR An error occurred while saving the entity changes. See the inner exception for details.
- ][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
- ]
|