mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Preventing deferred execution of Linq queries in Media
--HG-- branch : 1.x
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user