@@ -513,24 +513,50 @@ private static async Task ClearPoolAsync(MySqlConnection connection, IOBehavior
513
513
#if ! NETSTANDARD1_3
514
514
protected override DbProviderFactory DbProviderFactory => MySqlConnectorFactory . Instance ;
515
515
516
- /// <inheritdoc cref="DbConnection.GetSchema()"/>
516
+ /// <summary>
517
+ /// Returns schema information for the data source of this <see cref="MySqlConnection"/>.
518
+ /// </summary>
519
+ /// <returns>A <see cref="DataTable"/> containing schema information.</returns>
517
520
public override DataTable GetSchema ( ) => GetSchemaProvider ( ) . GetSchemaAsync ( IOBehavior . Synchronous , default ) . GetAwaiter ( ) . GetResult ( ) ;
518
521
519
- /// <inheritdoc cref="DbConnection.GetSchema(string)"/>
522
+ /// <summary>
523
+ /// Returns schema information for the data source of this <see cref="MySqlConnection"/>.
524
+ /// </summary>
525
+ /// <param name="collectionName">The name of the schema to return.</param>
526
+ /// <returns>A <see cref="DataTable"/> containing schema information.</returns>
520
527
public override DataTable GetSchema ( string collectionName ) => GetSchemaProvider ( ) . GetSchemaAsync ( IOBehavior . Synchronous , collectionName , default ) . GetAwaiter ( ) . GetResult ( ) ;
521
528
522
- /// <inheritdoc cref="DbConnection.GetSchema(string)"/>
529
+ /// <summary>
530
+ /// Returns schema information for the data source of this <see cref="MySqlConnection"/>.
531
+ /// </summary>
532
+ /// <param name="collectionName">The name of the schema to return.</param>
533
+ /// <param name="restrictions">The restrictions to apply to the schema; this parameter is currently ignored.</param>
534
+ /// <returns>A <see cref="DataTable"/> containing schema information.</returns>
523
535
public override DataTable GetSchema ( string collectionName , string ? [ ] restrictions ) => GetSchemaProvider ( ) . GetSchemaAsync ( IOBehavior . Synchronous , collectionName , default ) . GetAwaiter ( ) . GetResult ( ) ;
524
536
525
537
/// <summary>
526
538
/// Asynchronously returns schema information for the data source of this <see cref="MySqlConnection"/>.
527
539
/// </summary>
528
- /// <param name="collectionName">The schema name of data to be returned; if <c>null</c>, the <c>MetaDataCollections</c> schema is returned.</param>
540
+ /// <param name="cancellationToken">A token to cancel the asynchronous operation.</param>
541
+ /// <returns>A <see cref="Task{DataTable}"/> containing schema information.</returns>
542
+ public Task < DataTable > GetSchemaAsync ( CancellationToken cancellationToken = default ) => GetSchemaProvider ( ) . GetSchemaAsync ( AsyncIOBehavior , cancellationToken ) . AsTask ( ) ;
543
+
544
+ /// <summary>
545
+ /// Asynchronously returns schema information for the data source of this <see cref="MySqlConnection"/>.
546
+ /// </summary>
547
+ /// <param name="collectionName">The name of the schema to return.</param>
548
+ /// <param name="cancellationToken">A token to cancel the asynchronous operation.</param>
549
+ /// <returns>A <see cref="Task{DataTable}"/> containing schema information.</returns>
550
+ public Task < DataTable > GetSchemaAsync ( string collectionName , CancellationToken cancellationToken = default ) => GetSchemaProvider ( ) . GetSchemaAsync ( AsyncIOBehavior , collectionName , cancellationToken ) . AsTask ( ) ;
551
+
552
+ /// <summary>
553
+ /// Asynchronously returns schema information for the data source of this <see cref="MySqlConnection"/>.
554
+ /// </summary>
555
+ /// <param name="collectionName">The name of the schema to return.</param>
529
556
/// <param name="restrictions">The restrictions to apply to the schema; this parameter is currently ignored.</param>
530
557
/// <param name="cancellationToken">A token to cancel the asynchronous operation.</param>
531
- /// <returns></returns>
532
- public Task < DataTable > GetSchemaAsync ( string ? collectionName = null , string ? [ ] ? restrictions = null , CancellationToken cancellationToken = default ) =>
533
- GetSchemaProvider ( ) . GetSchemaAsync ( IOBehavior . Asynchronous , collectionName ?? "MetaDataCollections" , cancellationToken ) . AsTask ( ) ;
558
+ /// <returns>A <see cref="Task{DataTable}"/> containing schema information.</returns>
559
+ public Task < DataTable > GetSchemaAsync ( string collectionName , string ? [ ] restrictions , CancellationToken cancellationToken = default ) => GetSchemaProvider ( ) . GetSchemaAsync ( AsyncIOBehavior , collectionName , cancellationToken ) . AsTask ( ) ;
534
560
535
561
private SchemaProvider GetSchemaProvider ( ) => m_schemaProvider ??= new ( this ) ;
536
562
0 commit comments