/// <summary>
		/// 构造方法
		/// </summary>
		/// <param name="propertyDefineElem"></param>
		public SchemaPropertyDefine(SchemaPropertyDefineConfigurationElement propertyDefineElem) :
			base(propertyDefineElem)
		{
			propertyDefineElem.NullCheck("propertyDefineElem");

			this.Tab = propertyDefineElem.Tab;
			this.SnapshotMode = propertyDefineElem.SnapshotMode;
			this.SnapshotFieldName = propertyDefineElem.SnapshotFieldName;
		}
Example #2
0
        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="propertyDefineElem"></param>
        public SchemaPropertyDefine(SchemaPropertyDefineConfigurationElement propertyDefineElem) :
            base(propertyDefineElem)
        {
            propertyDefineElem.NullCheck("propertyDefineElem");

            this.Tab               = propertyDefineElem.Tab;
            this.SnapshotMode      = propertyDefineElem.SnapshotMode;
            this.SnapshotFieldName = propertyDefineElem.SnapshotFieldName;
        }
        public static void Output(this SchemaPropertyDefineConfigurationElement propertyElem, TextWriter writer, int indent = 0)
        {
            string indentChars = new string('\t', indent);

            writer.WriteLine("{0}Name={1}, Desp={2}, Type={3}, Category={4}, SnapshotMode={5}",
                             indentChars,
                             propertyElem.Name,
                             propertyElem.Description,
                             propertyElem.DataType,
                             propertyElem.Category,
                             propertyElem.SnapshotMode);
        }