摘要:
创建扩展 public static class ContentCreateExtensions { /* Item creation extension methods */ public static T New<T>(this IContentManager manager, string contentType) where T : class, ICo... 阅读全文
摘要:
/// 动态创建查询ContentItem public interface IHqlQuery { IContentManager ContentManager { get; } /// <summary> /// Add content type constraints to the query. /// </su... 阅读全文
摘要:
public interface IContentQuery { IContentManager ContentManager { get; } IContentQuery<TPart> ForPart<TPart>() where TPart : IContent; } public interface IContentQuery<T... 阅读全文
摘要:
这是Orchard管理Content的接口,定义了下面接口: IEnumerable<ContentTypeDefinition> GetContentTypeDefinitions(); ContentItem New(string contentType); 新建一个未持久化的ContentItem void Create(ContentItem contentI... 阅读全文