|
@ -16,6 +16,7 @@ using Faster.Zheng.Winin.AppBusiness.TestSchool; |
|
|
using Volo.Abp.EntityFrameworkCore.Modeling; |
|
|
using Volo.Abp.EntityFrameworkCore.Modeling; |
|
|
using Faster.Zheng.Winin.AppBusiness.DemoCar; |
|
|
using Faster.Zheng.Winin.AppBusiness.DemoCar; |
|
|
using Faster.Zheng.Winin.AppBaseBusiness.ExportCustomUserSetting; |
|
|
using Faster.Zheng.Winin.AppBaseBusiness.ExportCustomUserSetting; |
|
|
|
|
|
using System; |
|
|
|
|
|
|
|
|
namespace Faster.Zheng.Winin.EntityFrameworkCore; |
|
|
namespace Faster.Zheng.Winin.EntityFrameworkCore; |
|
|
|
|
|
|
|
@ -144,5 +145,20 @@ public class WininDbContext : |
|
|
|
|
|
|
|
|
/* Configure more properties here */ |
|
|
/* Configure more properties here */ |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#region 数据库操作控制台输出
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
///
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="optionsBuilder"></param>
|
|
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) |
|
|
|
|
|
{ |
|
|
|
|
|
base.OnConfiguring(optionsBuilder); |
|
|
|
|
|
optionsBuilder.LogTo(Console.WriteLine); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
} |
|
|
} |
|
|