mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Preventing deferred execution of Linq queries in Media
--HG-- branch : 1.x
This commit is contained in:
parent
fe77e45805
commit
8f6b89f7ae
@ -64,7 +64,7 @@ namespace Orchard.Media.Services {
|
||||
Size = folder.GetSize(),
|
||||
LastUpdated = folder.GetLastUpdated(),
|
||||
MediaPath = folder.GetPath()
|
||||
}).Where(f => !f.Name.Equals("RecipeJournal", StringComparison.OrdinalIgnoreCase));
|
||||
}).Where(f => !f.Name.Equals("RecipeJournal", StringComparison.OrdinalIgnoreCase)).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -80,7 +80,7 @@ namespace Orchard.Media.Services {
|
||||
LastUpdated = file.GetLastUpdated(),
|
||||
Type = file.GetFileType(),
|
||||
FolderName = relativePath
|
||||
});
|
||||
}).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user