mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Refining extension methods. Adding a streamlined content manager creation method.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4041639
This commit is contained in:
@@ -4,7 +4,7 @@ using Orchard.Models.Driver;
|
||||
using Orchard.Models.Records;
|
||||
|
||||
namespace Orchard.Tests.Models.Stubs {
|
||||
public class Gamma : ContentPartForRecord<GammaRecord> {
|
||||
public class Gamma : ContentPart<GammaRecord> {
|
||||
}
|
||||
|
||||
public class GammaRecord : ContentPartRecord {
|
||||
@@ -15,7 +15,7 @@ namespace Orchard.Tests.Models.Stubs {
|
||||
public class GammaProvider : ContentProvider {
|
||||
public GammaProvider(IRepository<GammaRecord> repository){
|
||||
Filters.Add(new ActivatingFilter<Gamma>(x => x == "gamma"));
|
||||
Filters.Add(new StorageFilterForRecord<GammaRecord>(repository));
|
||||
Filters.Add(new StorageFilter<GammaRecord>(repository));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user