Browse Source
Merge pull request #49 from RayMMond/dev
Fix default store name declaration
pull/57/head
Super
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
3 deletions
-
modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Domain/EasyAbp/EShop/Stores/Settings/StoresSettingDefinitionProvider.cs
-
modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Domain/EasyAbp/EShop/Stores/Settings/StoresSettings.cs
-
modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Domain/EasyAbp/EShop/Stores/Stores/StoreDataSeeder.cs
|
|
|
@ -10,7 +10,7 @@ namespace EasyAbp.EShop.Stores.Settings |
|
|
|
* Use names from StoresSettings class. |
|
|
|
*/ |
|
|
|
|
|
|
|
context.Add(new SettingDefinition(StoresSettings.DefaultProductTypeDisplayName, "My store")); |
|
|
|
context.Add(new SettingDefinition(StoresSettings.DefaultStoreName, "My store")); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -8,6 +8,6 @@ |
|
|
|
* public const string MySettingName = GroupName + ".MySettingName"; |
|
|
|
*/ |
|
|
|
|
|
|
|
public const string DefaultProductTypeDisplayName = GroupName + ".DefaultProductTypeDisplayName"; |
|
|
|
public const string DefaultStoreName = GroupName + ".DefaultStoreName"; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -35,7 +35,7 @@ namespace EasyAbp.EShop.Stores.Stores |
|
|
|
{ |
|
|
|
await _storeRepository.InsertAsync( |
|
|
|
new Store(_guidGenerator.Create(), _currentTenant.Id, |
|
|
|
await _settingProvider.GetOrNullAsync(StoresSettings.DefaultProductTypeDisplayName)), true); |
|
|
|
await _settingProvider.GetOrNullAsync(StoresSettings.DefaultStoreName)), true); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|