Exemple #1
0
 /// <summary>
 /// Check if a table exists in the database.
 /// </summary>
 /// <param name="tableName">The name of the table.</param>
 /// <returns>True if exists.</returns>
 public bool TableExists(string tableName)
 {
     if (String.IsNullOrEmpty(tableName))
     {
         throw new ArgumentNullException(nameof(tableName));
     }
     return(ListTables().Contains(PostgresqlHelper.ExtractTableName(tableName)));
 }