mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00

--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4044815
24 lines
730 B
C#
24 lines
730 B
C#
using Orchard.Data;
|
|
using Orchard.ContentManagement;
|
|
using Orchard.ContentManagement.Handlers;
|
|
using Orchard.Tests.ContentManagement.Records;
|
|
|
|
namespace Orchard.Tests.ContentManagement.Models {
|
|
public class Gamma : ContentPart<GammaRecord> {
|
|
}
|
|
|
|
|
|
public class GammaHandler : ContentHandler {
|
|
public override System.Collections.Generic.IEnumerable<ContentType> GetContentTypes() {
|
|
return new[] { new ContentType { Name = "gamma" } };
|
|
}
|
|
|
|
public GammaHandler(IRepository<GammaRecord> repository) {
|
|
Filters.Add(new ActivatingFilter<Gamma>(x => x == "gamma"));
|
|
Filters.Add(new StorageFilter<GammaRecord>(repository));
|
|
}
|
|
}
|
|
|
|
|
|
}
|