From 688dadf14149aa7aa201b55271fa88b1737d0cf4 Mon Sep 17 00:00:00 2001 From: gdlcf88 Date: Mon, 13 Jun 2022 00:29:56 +0800 Subject: [PATCH] Fix UOW in StoresDataSeedContributor --- .../EasyAbp/EShop/Stores/StoresDataSeedContributor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Domain/EasyAbp/EShop/Stores/StoresDataSeedContributor.cs b/modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Domain/EasyAbp/EShop/Stores/StoresDataSeedContributor.cs index 0f02cfc7..e7c9bbe5 100644 --- a/modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Domain/EasyAbp/EShop/Stores/StoresDataSeedContributor.cs +++ b/modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Domain/EasyAbp/EShop/Stores/StoresDataSeedContributor.cs @@ -15,8 +15,8 @@ namespace EasyAbp.EShop.Stores _storeDataSeeder = storeDataSeeder; } - [UnitOfWork(true)] - public async Task SeedAsync(DataSeedContext context) + [UnitOfWork] + public virtual async Task SeedAsync(DataSeedContext context) { await _storeDataSeeder.SeedAsync(context); }