public override void VisitHilo(HiloModel model)
        {
            // Attempt to find CollectionID for the property

            CollectionIDModel collModel = FindCollectionID(model.Property);

            if (collModel == null)
            {
                throw new ActiveRecordException(String.Format(
                                                    "A HileAttribute should be used with CollectionIDAttribute, but we couldn't find it for the property " +
                                                    currentModel.Type.FullName + "." + model.Property.Name));
            }

            collModel.Hilo = model;
        }
        /// <summary>
        /// Visits the hilo model
        /// </summary>
        /// <param name="model">The model.</param>
        public override void VisitHilo(HiloModel model)
        {
            // Attempt to find CollectionID for the property

            CollectionIDModel collModel = FindCollectionID(model.Property);

            if (collModel == null)
            {
                throw new ActiveRecordException( String.Format(
                    "A HiloAttribute should be used with CollectionIDAttribute, but we couldn't find it for the property " +
                    currentModel.Type.FullName + "." + model.Property.Name) );
            }

            collModel.Hilo = model;
        }
		/// <summary>
		/// Visits the hilo.
		/// </summary>
		/// <param name="model">The model.</param>
		public override void VisitHilo(HiloModel model)
		{
			AppendF("<param name=\"table\">{0}</param>", model.HiloAtt.Table);
			AppendF("<param name=\"column\">{0}</param>", model.HiloAtt.Column);
			AppendF("<param name=\"max_lo\">{0}</param>", model.HiloAtt.MaxLo);
		}
Exemple #4
0
 public virtual void VisitHilo(HiloModel model)
 {
 }
 /// <summary>
 /// Visits the hilo.
 /// </summary>
 /// <param name="model">The model.</param>
 public virtual void VisitHilo(HiloModel model)
 {
 }
Exemple #6
0
 public override void VisitHilo(HiloModel model)
 {
     AppendF("<param name=\"table\">{0}</param>", model.HiloAtt.Table);
     AppendF("<param name=\"column\">{0}</param>", model.HiloAtt.Column);
     AppendF("<param name=\"max_lo\">{0}</param>", model.HiloAtt.MaxLo);
 }