/// <summary> /// Marshalls and Executes the AutoQuery, be sure that prerequisites have been assigned before calling. /// </summary> public void AutoQuery(DALWIBase dalObj) { if (GlobalValues == null) { throw new Exception("GlobalValues object not assigned"); } Database = dalObj; InitLists(); // might have already been called, but will catch any changes globals.SQL = Database.SQL = Database.BuildSQL(this); if (GlobalValues.SuperDownload.Key == SupDwnldKeys.True && ((GlobalValues.TraceLevels & TraceStateUtils.TraceLevels.sql) != 0)) { throw new Exception(Database.SQL); } Database.Query(); }
public void AssignQuery(DALWIBase dal, String query) { Database = dal; Database.SQL = query; Database.Query(); }