Esempio n. 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));
 }
Esempio n. 2
0
 public static ContentTypePartDefinitionBuilder WithDisplayName(this ContentTypePartDefinitionBuilder builder, string displayName)
 {
     return(builder.MergeSettings <ContentTypePartSettings>(x => x.DisplayName = displayName));
 }
Esempio n. 3
0
 public static ContentTypePartDefinitionBuilder WithEditor(this ContentTypePartDefinitionBuilder builder, string editor)
 {
     return(builder.MergeSettings <ContentTypePartSettings>(x => x.Editor = editor));
 }
Esempio n. 4
0
 public static ContentTypePartDefinitionBuilder WithPosition(this ContentTypePartDefinitionBuilder builder, string position)
 {
     return(builder.MergeSettings <ContentTypePartSettings>(x => x.Position = position));
 }
Esempio n. 5
0
 public static ContentTypePartDefinitionBuilder WithDescription(this ContentTypePartDefinitionBuilder builder, string description)
 {
     return(builder.MergeSettings <ContentTypePartSettings>(x => x.Description = description));
 }