JiShe.IOT.Admin/test/JiShe.IOT.FreeSqlReppsitory.Tests/IOTFreeSqlRepositoryTestModule.cs

30 lines
902 B
C#
Raw Normal View History

2025-03-11 10:24:11 +08:00
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Modularity;
namespace JiShe.IOT.FreeSqlReppsitory.Tests;
[DependsOn(
typeof(IOTTestBaseModule),
typeof(IOTFreeSqlModule)
)]
public class IOTFreeSqlRepositoryTestModule: AbpModule
{
//public override void ConfigureServices(ServiceConfigurationContext context)
//{
// var configuration = context.Services.GetConfiguration();
// var connectionString = configuration.GetConnectionString("Default");
// var freeSql = new FreeSql.FreeSqlBuilder()
// .UseConnectionString(FreeSql.DataType.Sqlite, @"Data Source=|DataDirectory|\document.db;Pooling=true;Max Pool Size=10")
// .UseAutoSyncStructure(true)
// .Build();
// context.Services.AddSingleton<IFreeSql>(freeSql);
//}
}