Welcome to mirror list, hosted at ThFree Co, Russian Federation.

7.0-preview6_System.Data.Common.md « Microsoft.NETCore.App « preview6 « api-diff « preview « 7.0 « release-notes - github.com/dotnet/core.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 52a076506169c24d3ade9090a8e97ed296daac32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# System.Data.Common

``` diff
 namespace System.Data.Common {
+    public abstract class DbDataSource : IAsyncDisposable, IDisposable {
+        protected DbDataSource();
+        public abstract string ConnectionString { get; }
+        public DbBatch CreateBatch();
+        public DbCommand CreateCommand(string? commandText = null);
+        public DbConnection CreateConnection();
+        protected virtual DbBatch CreateDbBatch();
+        protected virtual DbCommand CreateDbCommand(string? commandText = null);
+        protected abstract DbConnection CreateDbConnection();
+        public void Dispose();
+        protected virtual void Dispose(bool disposing);
+        public ValueTask DisposeAsync();
+        protected virtual ValueTask DisposeAsyncCore();
+        public DbConnection OpenConnection();
+        public ValueTask<DbConnection> OpenConnectionAsync(CancellationToken cancellationToken = default(CancellationToken));
+        protected virtual DbConnection OpenDbConnection();
+        protected virtual ValueTask<DbConnection> OpenDbConnectionAsync(CancellationToken cancellationToken = default(CancellationToken));
+    }
     public abstract class DbProviderFactory {
+        public virtual DbDataSource CreateDataSource(string connectionString);
     }
 }
```