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;
        }
Ejemplo n.º 3
0
		/// <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);
		}
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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);
 }