Skip to content

Commit 8839d3c

Browse files
authored
Merge pull request #764 from neozhu/rename_picklist
Rename picklistset
2 parents c898967 + 68d05f8 commit 8839d3c

File tree

93 files changed

+5683
-2730
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+5683
-2730
lines changed

src/Application/Common/Interfaces/IApplicationDbContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public interface IApplicationDbContext
1212
DbSet<Logger> Loggers { get; set; }
1313
DbSet<AuditTrail> AuditTrails { get; set; }
1414
DbSet<Document> Documents { get; set; }
15-
DbSet<KeyValue> KeyValues { get; set; }
15+
DbSet<PicklistSet> PicklistSets { get; set; }
1616
DbSet<Product> Products { get; set; }
1717
DbSet<Tenant> Tenants { get; set; }
1818
DbSet<Contact> Contacts { get; set; }

src/Application/Common/Interfaces/IPicklistService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using CleanArchitecture.Blazor.Application.Features.KeyValues.DTOs;
1+
using CleanArchitecture.Blazor.Application.Features.PicklistSets.DTOs;
22

33
namespace CleanArchitecture.Blazor.Application.Common.Interfaces;
44

55
public interface IPicklistService
66
{
7-
List<KeyValueDto> DataSource { get; }
7+
List<PicklistSetDto> DataSource { get; }
88
event Func<Task>? OnChange;
99
void Initialize();
1010
void Refresh();

src/Application/Features/KeyValues/Commands/Delete/DeleteKeyValueCommand.cs

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/Application/Features/KeyValues/Commands/Delete/DeleteKeyValueCommandValidator.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/Application/Features/KeyValues/Commands/Import/ImportKeyValuesCommandValidator.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/Application/Features/KeyValues/Queries/ByName/KeyValuesQueryByName.cs

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/Application/Features/KeyValues/Queries/GetAll/GetAllKeyValuesQuery.cs

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/Application/Features/KeyValues/Queries/PaginationQuery/KeyValuesWithPaginationQuery.cs

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/Application/Features/KeyValues/Specifications/KeyValueAdvancedFilter.cs

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/Application/Features/KeyValues/Caching/KeyValueCacheKey.cs renamed to src/Application/Features/PicklistSets/Caching/PicklistSetCacheKey.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
namespace CleanArchitecture.Blazor.Application.Features.KeyValues.Caching;
4+
namespace CleanArchitecture.Blazor.Application.Features.PicklistSets.Caching;
55

6-
public static class KeyValueCacheKey
6+
public static class PicklistSetCacheKey
77
{
8-
public const string GetAllCacheKey = "all-keyvalues";
9-
public const string PicklistCacheKey = "all-picklistcachekey";
8+
public const string GetAllCacheKey = "all-PicklistSet";
9+
public const string PicklistCacheKey = "all-PicklistSetcachekey";
1010
private static readonly TimeSpan RefreshInterval = TimeSpan.FromHours(1);
1111
private static readonly object _tokenLock = new();
1212
private static CancellationTokenSource _tokenSource = new(RefreshInterval);
@@ -18,7 +18,7 @@ public static class KeyValueCacheKey
1818

1919
public static string GetCacheKey(string name)
2020
{
21-
return $"{name}-keyvalues";
21+
return $"{name}-PicklistSet";
2222
}
2323

2424
public static CancellationTokenSource GetOrCreateTokenSource()

0 commit comments

Comments
 (0)