/// <summary> /// Determine if records exist by filter. /// </summary> /// <param name="tableName">The name of the table.</param> /// <param name="filter">Expression.</param> /// <returns>True if records exist.</returns> public bool Exists(string tableName, Expression filter) { if (String.IsNullOrEmpty(tableName)) { throw new ArgumentNullException(nameof(tableName)); } DataTable result = Query(MysqlHelper.ExistsQuery(tableName, filter)); if (result != null && result.Rows.Count > 0) { return(true); } return(false); }