Browse Source

Disable transaction for the test project

pull/6762/head
Halil İbrahim Kalkan 6 years ago
parent
commit
b1a47de1b0
  1. 6
      test/AbpPerfTest/AbpPerfTest.WithAbp/AppModule.cs
  2. 2
      test/AbpPerfTest/AbpPerfTest.WithoutAbp/Properties/launchSettings.json

6
test/AbpPerfTest/AbpPerfTest.WithAbp/AppModule.cs

@ -8,6 +8,7 @@ using Volo.Abp.Autofac;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore.SqlServer;
using Volo.Abp.Modularity;
using Volo.Abp.Uow;
namespace AbpPerfTest.WithAbp
{
@ -29,6 +30,11 @@ namespace AbpPerfTest.WithAbp
{
options.UseSqlServer();
});
Configure<AbpUnitOfWorkDefaultOptions>(options =>
{
options.TransactionBehavior = UnitOfWorkTransactionBehavior.Disabled;
});
}
public override void OnApplicationInitialization(ApplicationInitializationContext context)

2
test/AbpPerfTest/AbpPerfTest.WithoutAbp/Properties/launchSettings.json

@ -19,7 +19,7 @@
"commandName": "Project",
"dotnetRunMessages": "true",
"launchBrowser": true,
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"applicationUrl": "https://localhost:5003;http://localhost:5002",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}

Loading…
Cancel
Save