/// <summary> /// Queries the specified SQL string, limited by a number of registers. /// </summary> /// <param name="p_database_index">Database index.</param> /// <param name="p_sql">SQL string.</param> /// <param name="p_count">Number of registers.</param> /// <param name="p_loghistory">If set to <c>true</c>, logs the command to the history.</param> /// <param name="p_logmigration">If set to <c>true</c>, logs the command to the migration.</param> public System.Data.DataTable QueryDataLimited(OmniDatabase.Generic p_database, string p_sql, int p_count, bool p_loghistory, bool p_logmigration) { System.Data.DataTable v_table = p_database.QueryDataLimited(p_sql, p_count); if (p_loghistory) { this.LogHistory(p_sql); } if (p_logmigration) { this.LogMigration(p_database, p_sql); } return(v_table); }