Inheritance: IVisitable
コード例 #1
0
 public override void VisitKey(KeyModel model)
 {
     if (model.JoinedKeyAtt.Column == null)
     {
         model.JoinedKeyAtt.Column = model.Property.Name;
     }
 }
コード例 #2
0
        /// <summary>
        /// Visits the key.
        /// </summary>
        /// <remarks>
        /// Infer column name
        /// </remarks>
        /// <param name="model">The model.</param>
        public override void VisitKey(KeyModel model)
        {
            if (model.JoinedKeyAtt.Column == null)
            {
                model.JoinedKeyAtt.Column = model.Property.Name;
            }

            // Append column prefix
            model.JoinedKeyAtt.Column = columnPrefix + model.JoinedKeyAtt.Column;
        }
コード例 #3
0
		/// <summary>
		/// Visits the key.
		/// </summary>
		/// <remarks>
		/// Infer column name
		/// </remarks>
		/// <param name="model">The model.</param>
		public override void VisitKey(KeyModel model)
		{
			if (model.JoinedKeyAtt.Column == null)
			{
				model.JoinedKeyAtt.Column = model.Property.Name;
			}

			// Append column prefix
			model.JoinedKeyAtt.Column = columnPrefix + model.JoinedKeyAtt.Column;
		}
コード例 #4
0
		/// <summary>
		/// Visits the key.
		/// </summary>
		/// <param name="model">The model.</param>
		public override void VisitKey(KeyModel model)
		{
			WriteKey(model.JoinedKeyAtt.Column);
		}
コード例 #5
0
 public virtual void VisitKey(KeyModel model)
 {
 }
コード例 #6
0
 /// <summary>
 /// Visits the key.
 /// </summary>
 /// <param name="model">The model.</param>
 public virtual void VisitKey(KeyModel model)
 {
 }
コード例 #7
0
 public override void VisitKey(KeyModel model)
 {
     WriteKey(model.JoinedKeyAtt.Column);
 }