public override void AddOrderBy(DynamicQuery countAll, MyGeneration.dOOdads.WhereParameter.Dir direction)
		{
			if(countAll.CountAll)
			{
				base.AddOrderBy ("COUNT(*)", direction);
			}
		}
Пример #2
0
 /// <summary>
 /// Overloaded to let your Query order the data by COUNT(*).
 /// Used with Query.CountAll set to true.
 /// Derived classes implement this, like SqlClientDynamicQuery and OleDbDynamicQuery
 /// to account for differences in DBMS systems.
 /// </summary>
 /// <param name="countAll">This should be entity.Query</param>
 /// <param name="direction">Either Descending or Ascending</param>
 /// <example>
 /// <code>
 /// emps.Query.AddOrderBy(emps.Query, WhereParameter.Dir.ASC)</code>
 /// </example>
 public virtual void AddOrderBy(DynamicQuery countAll, WhereParameter.Dir direction)
 {
 }
Пример #3
0
		/// <summary>
		/// Overloaded to let your Query order the data by COUNT(*).
		/// Used with Query.CountAll set to true.
		/// Derived classes implement this, like SqlClientDynamicQuery and OleDbDynamicQuery
		/// to account for differences in DBMS systems.
		/// </summary>
		/// <param name="countAll">This should be entity.Query</param>
		/// <param name="direction">Either Descending or Ascending</param>
		/// <example>
		/// <code>
		/// emps.Query.AddOrderBy(emps.Query, WhereParameter.Dir.ASC)</code>
		/// </example>
		public virtual void AddOrderBy(DynamicQuery countAll, WhereParameter.Dir direction)
		{
		}
Пример #4
0
 /// <summary>
 /// Thus method flushes the Data in the DataTable and nulls out the Current Row, including any DynamicQuery Data.
 /// You can call FlushData() and than reload an object.
 /// </summary>
 public virtual void FlushData()
 {
     _dataRow = null;
     _dataTable = null;
     _enumerator = null;
     _query = null;
     _canSave = true;
     _EOF = true;
 }