diff --git a/Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.EntityFrameworkCore/EntityFrameworkCore/WininDbContext.cs b/Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.EntityFrameworkCore/EntityFrameworkCore/WininDbContext.cs
index cb0868f..2e3840b 100644
--- a/Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.EntityFrameworkCore/EntityFrameworkCore/WininDbContext.cs
+++ b/Code/Be/Faster.Zheng.Winin/src/Faster.Zheng.Winin.EntityFrameworkCore/EntityFrameworkCore/WininDbContext.cs
@@ -16,6 +16,7 @@ using Faster.Zheng.Winin.AppBusiness.TestSchool;
using Volo.Abp.EntityFrameworkCore.Modeling;
using Faster.Zheng.Winin.AppBusiness.DemoCar;
using Faster.Zheng.Winin.AppBaseBusiness.ExportCustomUserSetting;
+using System;
namespace Faster.Zheng.Winin.EntityFrameworkCore;
@@ -144,5 +145,20 @@ public class WininDbContext :
/* Configure more properties here */
});
+
+ }
+
+ #region 数据库操作控制台输出
+
+ ///
+ ///
+ ///
+ ///
+ protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
+ {
+ base.OnConfiguring(optionsBuilder);
+ optionsBuilder.LogTo(Console.WriteLine);
}
+
+ #endregion
}