File tree Expand file tree Collapse file tree
samples/v2/3 - StudentManagerAspNetCore Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public void ConfigureServices(IServiceCollection services)
2525 services . AddSingleton < EmailService > ( ) ;
2626
2727 services
28- . AddTriggeredDbContextPool < ApplicationDbContext > ( options => {
28+ . AddDbContext < ApplicationDbContext > ( options => {
2929 options
3030 . UseSqlite ( "Data source=test.db" )
3131 . UseTriggers ( triggerOptions => {
@@ -37,6 +37,8 @@ public void ConfigureServices(IServiceCollection services)
3737 triggerOptions . AddTrigger < Triggers . Students . AssignRegistrationDate > ( ) ;
3838 triggerOptions . AddTrigger < Triggers . Students . SignupToMandatoryCourses > ( ) ;
3939 } ) ;
40+
41+ options . EnableSensitiveDataLogging ( true ) ;
4042 } )
4143 . AddHttpContextAccessor ( ) ;
4244 }
Original file line number Diff line number Diff line change 11{
22 "Logging" : {
33 "LogLevel" : {
4- "Default" : " Information" ,
5- "Microsoft" : " Information" ,
6- "Microsoft.Hosting.Lifetime" : " Information"
4+ "EntityFrameworkCore.Triggered.TriggerSession" : " Information" ,
5+ "Microsoft.EntityFrameworkCore" : " Information"
76 }
87 },
98 "AllowedHosts" : " *"
You can’t perform that action at this time.
0 commit comments