30 lines
930 B
C#
30 lines
930 B
C#
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Volo.Abp.Modularity;
|
|
|
|
namespace JiShe.ServicePro.FreeSqlReppsitory.Tests;
|
|
|
|
[DependsOn(
|
|
typeof(ServiceProTestBaseModule),
|
|
typeof(ServiceProFreeSqlModule)
|
|
)]
|
|
|
|
public class ServiceProFreeSqlRepositoryTestModule: 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);
|
|
//}
|
|
|
|
} |