Method DiscoverAsync
- Namespace
- IntentSharp.Data
- Assembly
- IntentSharp.dll
DiscoverAsync(DbConnection, CancellationToken)
Reads the tables, views and columns that connection can see. A closed connection is opened for
the discovery and closed again; an open one is left open.
public Task<DatabaseSchema> DiscoverAsync(DbConnection connection, CancellationToken cancellationToken = default)
Parameters
connectionDbConnectioncancellationTokenCancellationToken
Returns
- Task<DatabaseSchema>
Exceptions
- ArgumentNullException
connectionis null.