Browse Source
Remove `AsQueryable` method.
Resolve #11641
There is a performance issue with the `AsQueryable` method.
pull/11660/head
maliming
5 years ago
No known key found for this signature in database
GPG Key ID: 96224957E51C89E
1 changed files with
2 additions and
1 deletions
-
framework/src/Volo.Abp.Localization/Volo/Abp/Localization/LocalizationResourceContributorList.cs
|
|
@ -8,7 +8,8 @@ public class LocalizationResourceContributorList : List<ILocalizationResourceCon |
|
|
{ |
|
|
{ |
|
|
public LocalizedString GetOrNull(string cultureName, string name) |
|
|
public LocalizedString GetOrNull(string cultureName, string name) |
|
|
{ |
|
|
{ |
|
|
foreach (var contributor in this.AsQueryable().Reverse()) |
|
|
this.Reverse(); |
|
|
|
|
|
foreach (var contributor in this) |
|
|
{ |
|
|
{ |
|
|
var localString = contributor.GetOrNull(cultureName, name); |
|
|
var localString = contributor.GetOrNull(cultureName, name); |
|
|
if (localString != null) |
|
|
if (localString != null) |
|
|
|