2025-03-11 10:24:11 +08:00
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
using Volo.Abp.Modularity;
|
|
|
|
|
|
2025-05-27 14:27:50 +08:00
|
|
|
namespace JiShe.IoT.FreeSqlReppsitory.Tests;
|
2025-03-11 10:24:11 +08:00
|
|
|
|
|
|
|
|
[DependsOn(
|
2025-05-27 14:27:50 +08:00
|
|
|
typeof(IoTTestBaseModule),
|
|
|
|
|
typeof(IoTFreeSqlModule)
|
2025-03-11 10:24:11 +08:00
|
|
|
)]
|
|
|
|
|
|
2025-05-27 14:27:50 +08:00
|
|
|
public class IoTFreeSqlRepositoryTestModule: AbpModule
|
2025-03-11 10:24:11 +08:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
//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);
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
}
|