mirror of https://github.com/abpframework/abp.git
11 changed files with 61 additions and 40 deletions
@ -0,0 +1,22 @@ |
|||||
|
using Volo.Abp.Settings; |
||||
|
|
||||
|
namespace ProductManagement |
||||
|
{ |
||||
|
/* These setting definitions will be visible to clients that has a ProductManagement.Application.Contracts |
||||
|
* reference. Settings those should be hidden from clients should be defined in the ProductManagement.Application |
||||
|
* package. |
||||
|
*/ |
||||
|
public class ProductManagementSettingDefinitionProvider : SettingDefinitionProvider |
||||
|
{ |
||||
|
public override void Define(ISettingDefinitionContext context) |
||||
|
{ |
||||
|
context.Add( |
||||
|
new SettingDefinition( |
||||
|
ProductManagementSettings.MaxPageSize, |
||||
|
"100", |
||||
|
isVisibleToClients: true |
||||
|
) |
||||
|
); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,12 @@ |
|||||
|
namespace ProductManagement |
||||
|
{ |
||||
|
public static class ProductManagementSettings |
||||
|
{ |
||||
|
public const string GroupName = "ProductManagement"; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Maximum allowed page size for paged list requests.
|
||||
|
/// </summary>
|
||||
|
public const string MaxPageSize = GroupName + ".MaxPageSize"; |
||||
|
} |
||||
|
} |
||||
@ -1,14 +0,0 @@ |
|||||
using Volo.Abp.Settings; |
|
||||
|
|
||||
namespace ProductManagement |
|
||||
{ |
|
||||
public class ProductManagementSettingDefinitionProvider : SettingDefinitionProvider |
|
||||
{ |
|
||||
public override void Define(ISettingDefinitionContext context) |
|
||||
{ |
|
||||
/* Define module settings here. |
|
||||
* Use names from ProductManagementSettings class. |
|
||||
*/ |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
@ -1,11 +0,0 @@ |
|||||
namespace ProductManagement |
|
||||
{ |
|
||||
public static class ProductManagementSettings |
|
||||
{ |
|
||||
public const string GroupName = "ProductManagement"; |
|
||||
|
|
||||
/* Add constants for setting names. Example: |
|
||||
* public const string MySettingName = GroupName + ".MySettingName"; |
|
||||
*/ |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue