摘要: 创建扩展 public static class ContentCreateExtensions { /* Item creation extension methods */ public static T New<T>(this IContentManager manager, string contentType) where T : class, ICo... 阅读全文
posted @ 2012-08-17 13:04 commanderss 阅读(286) 评论(0) 推荐(0) 编辑
摘要: /// 动态创建查询ContentItem public interface IHqlQuery { IContentManager ContentManager { get; } /// <summary> /// Add content type constraints to the query. /// </su... 阅读全文
posted @ 2012-08-17 13:01 commanderss 阅读(469) 评论(0) 推荐(0) 编辑
摘要: public interface IContentQuery { IContentManager ContentManager { get; } IContentQuery<TPart> ForPart<TPart>() where TPart : IContent; } public interface IContentQuery<T... 阅读全文
posted @ 2012-08-17 12:59 commanderss 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 这是Orchard管理Content的接口,定义了下面接口: IEnumerable<ContentTypeDefinition> GetContentTypeDefinitions(); ContentItem New(string contentType); 新建一个未持久化的ContentItem void Create(ContentItem contentI... 阅读全文
posted @ 2012-08-17 12:24 commanderss 阅读(707) 评论(0) 推荐(0) 编辑