SenseNet.ContentRepository.Storage.Schema.SchemaWriter.CreatePropertyType C# (CSharp) Метод

CreatePropertyType() публичный абстрактный Метод

public abstract CreatePropertyType ( string name, DataType dataType, int mapping, bool isContentListProperty ) : void
name string
dataType DataType
mapping int
isContentListProperty bool
Результат void
		public abstract void CreatePropertyType(string name, DataType dataType, int mapping, bool isContentListProperty);
		/// <summary>

Usage Example

Пример #1
0
        // -------------------------------------------------------------- CreateOrRemove commands

        private static void WriteCreateOrModifyPropertyTypes(SchemaEditor origSchema, SchemaEditor newSchema, SchemaWriter writer)
        {
            // new
            foreach (PropertyType newType in newSchema.PropertyTypes)
            {
                if (NeedToCreate <PropertyType>(origSchema.PropertyTypes, newType))
                {
                    writer.CreatePropertyType(newType.Name, newType.DataType, newType.Mapping, newType.IsContentListProperty);
                }
            }
        }