Beispiel #1
0
 public static ContentTypePartDefinitionBuilder ContainedContentTypes(this ContentTypePartDefinitionBuilder builder, string[] containedContentTypes, bool keepExistingTypes = true)
 {
     return(keepExistingTypes
         ? builder.MergeSettings(new JObject()
     {
         ["ContainedContentTypes"] = new JArray(containedContentTypes)
     })
         : builder.WithSetting("ContainedContentTypes", containedContentTypes));
 }
Beispiel #2
0
 public static ContentTypePartDefinitionBuilder WithDisplayName(this ContentTypePartDefinitionBuilder builder, string displayName)
 {
     return(builder.MergeSettings <ContentTypePartSettings>(x => x.DisplayName = displayName));
 }
Beispiel #3
0
 public static ContentTypePartDefinitionBuilder WithEditor(this ContentTypePartDefinitionBuilder builder, string editor)
 {
     return(builder.MergeSettings <ContentTypePartSettings>(x => x.Editor = editor));
 }
Beispiel #4
0
 public static ContentTypePartDefinitionBuilder WithPosition(this ContentTypePartDefinitionBuilder builder, string position)
 {
     return(builder.MergeSettings <ContentTypePartSettings>(x => x.Position = position));
 }
Beispiel #5
0
 public static ContentTypePartDefinitionBuilder WithDescription(this ContentTypePartDefinitionBuilder builder, string description)
 {
     return(builder.MergeSettings <ContentTypePartSettings>(x => x.Description = description));
 }