Base class for all ActiveRecord queries.
Inheritance: IActiveRecordQuery, ICloneable
示例#1
0
        /// <summary>
        /// Just a default clone implementation...
        /// </summary>
        public virtual object Clone()
        {
            ActiveRecordBaseQuery clone = (ActiveRecordBaseQuery)MemberwiseClone();

            if (queryModifiers != null)
            {
                clone.queryModifiers = new ArrayList(queryModifiers);
            }
            return(clone);
        }
		/// <summary>
		/// Add an <c>IActiveRecordQuery</c> to our <see cref="ActiveRecordMultiQuery"/>
		/// </summary>
		/// <param name="activeRecordQuery"><c>IActiveRecordQuery</c> to be added to the MultiQuery</param>
		public void Add(ActiveRecordBaseQuery activeRecordQuery)
		{
			_queryList.Add(activeRecordQuery);
		}
		/// <summary>
		/// Initializes a new instance of the <see cref="ActiveRecordMultiQuery"/> class.
		/// </summary>
		/// <param name="RootType">the root type for all of the queries that will be included in the <c>IMultiQuery</c></param>
		/// <param name="activeRecordQueries">an array of <c>IActiveRecordQuery</c></param>
		public ActiveRecordMultiQuery(Type RootType, ActiveRecordBaseQuery[] activeRecordQueries)
			: this(RootType)
		{
			_queryList.AddRange(activeRecordQueries);
		}
		/// <summary>
		/// Gets the internal list of modifiers used by the specified query.
		/// NOT INTENTED FOR NORMAL USE.
		/// </summary>
		public static IList GetModifiers(ActiveRecordBaseQuery query)
		{
			return query.queryModifiers;
		}
示例#5
0
 /// <summary>
 /// Gets the internal list of modifiers used by the specified query.
 /// NOT INTENTED FOR NORMAL USE.
 /// </summary>
 public static IList GetModifiers(ActiveRecordBaseQuery query)
 {
     return(query.queryModifiers);
 }