diff --git a/EgwCoreLib.Lux.Data/Services/Admin/VocabolarioService.cs b/EgwCoreLib.Lux.Data/Services/Admin/VocabolarioService.cs index e75b8d40..0393e63e 100644 --- a/EgwCoreLib.Lux.Data/Services/Admin/VocabolarioService.cs +++ b/EgwCoreLib.Lux.Data/Services/Admin/VocabolarioService.cs @@ -85,49 +85,49 @@ namespace EgwCoreLib.Lux.Data.Services.Admin /// public async Task> GetAllAsync() { - return await TraceAsync($"{_className}.GetAllAsync", async (activity) => - { - return await GetOrSetCacheAsync( - $"{_redisBaseKey}:{_className}:ALL", - async () => await _repo.GetAllAsync() - ); - }); + return await GetOrFetchAsync( + "GetAllAsync", + $"{_redisBaseKey}:{_className}:ALL", + () => _repo.GetAllAsync(), + base.LongCache, + _className + ); } /// public async Task GetByIdAsync(string lingua, string lemma) { - return await TraceAsync($"{_className}.GetById", async (activity) => - { - return await GetOrSetCacheAsync( - $"{_redisBaseKey}:{_className}:GetById:{lingua}:{lemma}", - async () => await _repo.GetByIdAsync(lingua, lemma) - ); - }); + return await GetOrFetchAsync( + "GetByIdAsync", + $"{_redisBaseKey}:{_className}:GetById:{lingua}:{lemma}", + () => _repo.GetByIdAsync(lingua, lemma), + base.LongCache, + _className + ); } /// public async Task> GetByLang(string lingua) { - return await TraceAsync($"{_className}.GetByLang", async (activity) => - { - return await GetOrSetCacheAsync( - $"{_redisBaseKey}:{_className}:GetByLang:{lingua}", - async () => await _repo.GetByLang(lingua) - ); - }); + return await GetOrFetchAsync( + "GetByLang", + $"{_redisBaseKey}:{_className}:GetByLang:{lingua}", + () => _repo.GetByLang(lingua), + base.LongCache, + _className + ); } /// public async Task> ListLingueAsync() { - return await TraceAsync($"{_className}.ListLingueAsync", async (activity) => - { - return await GetOrSetCacheAsync( - $"{_redisBaseKey}:{_className}:Lingue", - async () => await _repo.ListLingueAsync() - ); - }); + return await GetOrFetchAsync( + "ListLingueAsync", + $"{_redisBaseKey}:{_className}:Lingue", + () => _repo.ListLingueAsync(), + base.LongCache, + _className + ); } /// diff --git a/Lux.UI/Components/Compo/Admin/VocabMan.razor b/Lux.UI/Components/Compo/Admin/VocabMan.razor index f7c07e43..e63c0527 100644 --- a/Lux.UI/Components/Compo/Admin/VocabMan.razor +++ b/Lux.UI/Components/Compo/Admin/VocabMan.razor @@ -5,8 +5,8 @@
- + @if (string.IsNullOrEmpty(SelLingua)) { } @@ -15,7 +15,7 @@ } - @if (!string.IsNullOrEmpty(selLingua)) + @if (!string.IsNullOrEmpty(SelLingua)) { } diff --git a/Lux.UI/Components/Compo/Admin/VocabMan.razor.cs b/Lux.UI/Components/Compo/Admin/VocabMan.razor.cs index a7a0a402..c5bc3f1a 100644 --- a/Lux.UI/Components/Compo/Admin/VocabMan.razor.cs +++ b/Lux.UI/Components/Compo/Admin/VocabMan.razor.cs @@ -21,6 +21,9 @@ namespace Lux.UI.Components.Compo.Admin [Parameter] public string SearchVal { get; set; } = string.Empty; + [Parameter] + public string SelLingua { get; set; } = ""; + #endregion Public Properties #region Protected Methods @@ -36,8 +39,8 @@ namespace Lux.UI.Components.Compo.Admin private async Task DoClone() { - if (!string.IsNullOrEmpty(selLingua)) - await EC_ReqClone.InvokeAsync(selLingua); + if (!string.IsNullOrEmpty(SelLingua)) + await EC_ReqClone.InvokeAsync(SelLingua); } #endregion Protected Methods @@ -49,7 +52,6 @@ namespace Lux.UI.Components.Compo.Admin private bool isLoading = false; private List ListPaged = new(); private int numRecord = 10; - private string selLingua = ""; private int totalCount = 0; @@ -97,9 +99,9 @@ namespace Lux.UI.Components.Compo.Admin private void UpdateTable() { ListPaged.Clear(); - if (!string.IsNullOrEmpty(selLingua)) + if (!string.IsNullOrEmpty(SelLingua)) { - var rawList = AllRecord.Where(x => x.Lingua == selLingua).ToList(); + var rawList = AllRecord.Where(x => x.Lingua == SelLingua).ToList(); if (!string.IsNullOrEmpty(SearchVal)) { rawList = rawList.Where(x => diff --git a/Lux.UI/Components/Pages/Vocabulary.razor b/Lux.UI/Components/Pages/Vocabulary.razor index 2d68a8dc..42bce7b8 100644 --- a/Lux.UI/Components/Pages/Vocabulary.razor +++ b/Lux.UI/Components/Pages/Vocabulary.razor @@ -39,10 +39,10 @@ {
- +
- +
} diff --git a/Resources/ChangeLog.html b/Resources/ChangeLog.html index 5df71938..20bf37cb 100644 --- a/Resources/ChangeLog.html +++ b/Resources/ChangeLog.html @@ -25,30 +25,3 @@
- - LUX - Web Windows MES -

Versione: 1.1.2606.0411

-
Note di rilascio: -
    -
  • - Ultime modifiche: -
      {{LAST-CHANGES}}
    -
  • -
  • - v.0.9.* → -
      -
    • Versione preliminare
    • -
    • Release dotNet8
    • -
    • Integrazione EFCore
    • -
    -
  • -
-
-
- -
- -
-