コード例 #1
0
 public ContentPartFieldDefinition(ContentFieldDefinition contentFieldDefinition, string name, SettingsDictionary settings)
 {
     Name            = name;
     FieldDefinition = contentFieldDefinition;
     Settings        = settings;
 }
コード例 #2
0
 public ContentPartFieldDefinition(string name)
 {
     Name            = name;
     FieldDefinition = new ContentFieldDefinition(null);
     Settings        = new SettingsDictionary();
 }
コード例 #3
0
 public ContentPartFieldDefinition( ContentFieldDefinition contentFieldDefinition, string name, SettingsDictionary settings)
 {
     Name = name;
     FieldDefinition = contentFieldDefinition;
     Settings = settings;
 }
コード例 #4
0
        private ContentFieldDefinitionRecord Acquire(ContentFieldDefinition contentFieldDefinition)
        {
            var result = _contentStorageManager
                .Query<ContentFieldDefinitionRecord>(x => x.Name == contentFieldDefinition.Name)
                .SingleOrDefault();

            if (result == null) {
                result = new ContentFieldDefinitionRecord { Name = contentFieldDefinition.Name };
                _contentStorageManager.Store(result);
            }
            return result;
        }
コード例 #5
0
 public ContentPartFieldDefinition(string name)
 {
     Name = name;
     FieldDefinition = new ContentFieldDefinition(null);
     Settings = new SettingsDictionary();
 }
コード例 #6
0
 public override ContentPartFieldDefinitionBuilder OfType(string fieldType)
 {
     _fieldDefinition = new ContentFieldDefinition(fieldType);
     return this;
 }
コード例 #7
0
 public override ContentPartFieldDefinitionBuilder OfType(ContentFieldDefinition fieldDefinition)
 {
     _fieldDefinition = fieldDefinition;
     return this;
 }
コード例 #8
0
 public FieldConfigurerImpl(ContentPartFieldDefinition field, ContentPartDefinition part)
     : base(field)
 {
     _fieldDefinition = field.FieldDefinition;
     _fieldName = field.Name;
     _partDefinition = part;
 }
コード例 #9
0
 public abstract ContentPartFieldDefinitionBuilder OfType(ContentFieldDefinition fieldDefinition);