Inheritance: IVisitable
 public override void VisitVersion(VersionModel model)
 {
     if (model.VersionAtt.Column == null)
     {
         model.VersionAtt.Column = model.Property.Name;
     }
 }
Beispiel #2
0
 public override void VisitVersion(VersionModel model)
 {
     AppendF("<version {0} {1} {2} {3} />",
             MakeAtt("name", model.Property.Name),
             MakeAtt("access", model.VersionAtt.AccessString),
             MakeAtt("column", model.VersionAtt.Column),
             MakeTypeAtt(model.Property.PropertyType, model.VersionAtt.Type));
 }
        /// <summary>
        /// Visits the version.
        /// </summary>
        /// <remarks>
        /// Infer column name
        /// </remarks>
        /// <param name="model">The model.</param>
        public override void VisitVersion(VersionModel model)
        {
            if (model.VersionAtt.Column == null)
            {
                model.VersionAtt.Column = model.Property.Name;
            }

            // Append column prefix
            model.VersionAtt.Column = columnPrefix + model.VersionAtt.Column;
        }
		/// <summary>
		/// Visits the version.
		/// </summary>
		/// <remarks>
		/// Infer column name
		/// </remarks>
		/// <param name="model">The model.</param>
		public override void VisitVersion(VersionModel model)
		{
			if (model.VersionAtt.Column == null)
			{
				model.VersionAtt.Column = model.Property.Name;
			}

			// Append column prefix
			model.VersionAtt.Column = columnPrefix + model.VersionAtt.Column;
		}
Beispiel #5
0
		/// <summary>
		/// Visits the version.
		/// </summary>
		/// <param name="model">The model.</param>
		public override void VisitVersion(VersionModel model)
		{
			String unsavedValue = model.VersionAtt.UnsavedValue;

			AppendF("<version{0}{1}{2}{3}{4} />",
			        MakeAtt("name", model.Property.Name),
			        MakeAtt("access", model.VersionAtt.AccessString),
			        MakeAtt("column", model.VersionAtt.Column),
			        MakeTypeAtt(model.Property.PropertyType, model.VersionAtt.Type),
			        WriteIfNonNull("unsaved-value", unsavedValue));
		}
Beispiel #6
0
 public virtual void VisitVersion(VersionModel model)
 {
 }
 /// <summary>
 /// Visits the version.
 /// </summary>
 /// <param name="model">The model.</param>
 public virtual void VisitVersion(VersionModel model)
 {
 }