Skip to content

Commit

Permalink
fix: 修复 FreeSql ORM 脚本错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ArgoZhang committed Apr 25, 2024
1 parent b5390a3 commit e9e8a81
Showing 1 changed file with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public static IServiceCollection AddBootstrapBlazorAdmin(this IServiceCollection
// 增加 PetaPoco 数据服务
services.AddPetaPocoDataAccessServices();

//增加 FreeSql 数据服务
//services.AddFreeSqlDataAccessServices();

// 增加 EFCore 数据服务
//services.AddEFCoreDataAccessServices((provider, option) =>
//{
Expand All @@ -59,17 +62,6 @@ public static IServiceCollection AddBootstrapBlazorAdmin(this IServiceCollection
// option.EnableSensitiveDataLogging();
//});

// 增加 FreeSql 数据服务
// services.AddFreeSql((provider, builder) =>
// {
// var configuration = provider.GetRequiredService<IConfiguration>();
// var connString = configuration.GetConnectionString("bb");
// builder.UseConnectionString(FreeSql.DataType.Sqlite, connString);
//#if DEBUG
// 调试sql语句输出
// builder.UseMonitorCommand(cmd => System.Console.WriteLine(cmd.CommandText));
//#endif

return services;
}
}
Expand Down

0 comments on commit e9e8a81

Please sign in to comment.