// Delete -------------------------------- /// <summary> /// Creates a new Delete advanced database query. /// </summary> /// <returns>Returns a new Delete advanced database query</returns> public static IDbSingleQuery DeleteQuery(string name, DbTable table, Action <IDbSingleQuery> initAction = null) { IDbSingleQuery query = new DbSingleQuery(name, DbQueryKind.Delete, table); initAction?.Invoke(query); return(query); }
// Drop -------------------------------- /// <summary> /// Creates a new Drop advanced database query. /// </summary> /// <returns>Returns a new Drop advanced database query</returns> public static IDbSingleQuery DropQuery(string name, DbTable table, bool onlyIfExisting = true, Action <IDbSingleQuery> initAction = null) { IDbSingleQuery query = new DbSingleQuery(name, DbQueryKind.Drop, table); query.CheckExistence(onlyIfExisting); initAction?.Invoke(query); return(query); }