|
21 | 21 | </Interface> |
22 | 22 | </Interfaces> |
23 | 23 | <Docs> |
24 | | - <summary>To be added.</summary> |
25 | | - <remarks>To be added.</remarks> |
| 24 | + <summary>Represents a data source which can be used to obtain open connections, and against which commands can be executed directly.</summary> |
| 25 | + <remarks>Unlike <see cref="T:System.Data.Common.DbProviderFactory" />, which is purely a factory for provider-specific objects such as <see cref="T:System.Data.Common.DbConnection" />, <see cref="T:System.Data.Common.DbDataSource" /> hands out open connections to specific databases, encapsulating all the information needed to connect to a database. Depending on how the <see cref="T:System.Data.Common.DbDataSource" /> was configured, the connections it hands out may be pooled.</remarks> |
26 | 26 | </Docs> |
27 | 27 | <Members> |
28 | 28 | <Member MemberName=".ctor"> |
|
38 | 38 | </AssemblyInfo> |
39 | 39 | <Parameters /> |
40 | 40 | <Docs> |
41 | | - <summary>To be added.</summary> |
| 41 | + <summary>Initializes a new instance of the <see cref="T:System.Data.Common.DbDataSource" /> class.</summary> |
42 | 42 | <remarks>To be added.</remarks> |
43 | 43 | </Docs> |
44 | 44 | </Member> |
|
58 | 58 | <ReturnType>System.String</ReturnType> |
59 | 59 | </ReturnValue> |
60 | 60 | <Docs> |
61 | | - <summary>To be added.</summary> |
62 | | - <value>To be added.</value> |
| 61 | + <summary>Gets the connection string of the database represented by this <see cref="T:System.Data.Common.DbDataSource" />. The exact contents of the connection string depend on the specific data source for this connection.</summary> |
| 62 | + <value>The connection string of the database represented by this <see cref="T:System.Data.Common.DbDataSource" />. The exact contents of the connection string depend on the specific data source for this connection.</value> |
63 | 63 | <remarks>To be added.</remarks> |
64 | 64 | </Docs> |
65 | 65 | </Member> |
|
80 | 80 | </ReturnValue> |
81 | 81 | <Parameters /> |
82 | 82 | <Docs> |
83 | | - <summary>To be added.</summary> |
84 | | - <returns>To be added.</returns> |
85 | | - <remarks>To be added.</remarks> |
| 83 | + <summary>Returns a <see cref="T:System.Data.Common.DbBatch" /> that's ready for execution against the <see cref="T:System.Data.Common.DbDataSource" />.</summary> |
| 84 | + <returns>A <see cref="T:System.Data.Common.DbBatch" /> that's ready for execution against the <see cref="T:System.Data.Common.DbDataSource" />.</returns> |
| 85 | + <remarks> |
| 86 | + <format type="text/markdown"><![CDATA[ |
| 87 | + |
| 88 | +## Remarks |
| 89 | + Batches returned from this method are already configured to execute against their originating <xref:System.Data.Common.DbDataSource>; their <xref:System.Data.Common.DbBatch.Connection%2A> does not need to be set, and doing so will throw an exception. |
| 90 | +
|
| 91 | + Since these batches have no explicitly-managed connection, it is not possible to use them with transactions, and trying to set <xref:System.Data.Common.DbBatch.Transaction%2A> will throw an exception. To use a transaction, get a connection from <xref:System.Data.Common.DbDataSource.OpenConnection%2A> and create a command against it. |
| 92 | +
|
| 93 | + ]]></format> |
| 94 | + </remarks> |
86 | 95 | </Docs> |
87 | 96 | </Member> |
88 | 97 | <Member MemberName="CreateCommand"> |
|
103 | 112 | <Parameter Name="commandText" Type="System.String" /> |
104 | 113 | </Parameters> |
105 | 114 | <Docs> |
106 | | - <param name="commandText">To be added.</param> |
107 | | - <summary>To be added.</summary> |
108 | | - <returns>To be added.</returns> |
109 | | - <remarks>To be added.</remarks> |
| 115 | + <param name="commandText">The text command with which to initialize the <see cref="T:System.Data.Common.DbCommand" /> that this method returns.</param> |
| 116 | + <summary>Returns a <see cref="T:System.Data.Common.DbCommand" /> that's ready for execution against the <see cref="T:System.Data.Common.DbDataSource" />.</summary> |
| 117 | + <returns>A <see cref="T:System.Data.Common.DbCommand" /> that's ready for execution against the <see cref="T:System.Data.Common.DbDataSource" />.</returns> |
| 118 | + <remarks> |
| 119 | + <format type="text/markdown"><![CDATA[ |
| 120 | + |
| 121 | +## Remarks |
| 122 | + Commands returned from this method are already configured to execute against their originating <xref:System.Data.Common.DbDataSource>; their <xref:System.Data.Common.DbCommand.Connection%2A> does not need to be set, and doing so will throw an exception. |
| 123 | +
|
| 124 | + Since these commands have no explicitly-managed connection, it is not possible to use them with transactions, and trying to set <xref:System.Data.Common.DbCommand.Transaction%2A> will throw an exception. To use a transaction, get a connection from <xref:System.Data.Common.DbDataSource.OpenConnection%2A> and create a command against it. |
| 125 | +
|
| 126 | + ]]></format> |
| 127 | + </remarks> |
110 | 128 | </Docs> |
111 | 129 | </Member> |
112 | 130 | <Member MemberName="CreateConnection"> |
|
126 | 144 | </ReturnValue> |
127 | 145 | <Parameters /> |
128 | 146 | <Docs> |
129 | | - <summary>To be added.</summary> |
130 | | - <returns>To be added.</returns> |
131 | | - <remarks>To be added.</remarks> |
| 147 | + <summary>Returns a <see cref="T:System.Data.Common.DbBatch" /> that's ready for execution against the <see cref="T:System.Data.Common.DbDataSource" />.</summary> |
| 148 | + <returns>A <see cref="T:System.Data.Common.DbBatch" /> that's ready for execution against the <see cref="T:System.Data.Common.DbDataSource" />.</returns> |
| 149 | + <remarks> |
| 150 | + <format type="text/markdown"><![CDATA[ |
| 151 | + |
| 152 | +## Remarks |
| 153 | + Batches returned from this method are already configured to execute against their originating <xref:System.Data.Common.DbDataSource>; their <xref:System.Data.Common.DbBatch.Connection%2A> does not need to be set, and doing so will throw an exception. |
| 154 | +
|
| 155 | + Since these batches have no explicitly-managed connection, it is not possible to use them with transactions, and trying to set <xref:System.Data.Common.DbBatch.Transaction%2A> will throw an exception. |
| 156 | +
|
| 157 | + ]]></format> |
| 158 | + </remarks> |
132 | 159 | </Docs> |
133 | 160 | </Member> |
134 | 161 | <Member MemberName="CreateDbBatch"> |
|
148 | 175 | </ReturnValue> |
149 | 176 | <Parameters /> |
150 | 177 | <Docs> |
151 | | - <summary>To be added.</summary> |
152 | | - <returns>To be added.</returns> |
153 | | - <remarks>To be added.</remarks> |
| 178 | + <summary>Returns a new, closed connection to the database represented by this <see cref="T:System.Data.Common.DbDataSource" />.</summary> |
| 179 | + <returns>A new, closed connection to the database represented by this <see cref="T:System.Data.Common.DbDataSource" />.</returns> |
| 180 | + <remarks> |
| 181 | + <format type="text/markdown"><![CDATA[ |
| 182 | + |
| 183 | +## Remarks |
| 184 | + This method is meant to be overridden by implementing ADO.NET providers, and is not a user-facing API. |
| 185 | + |
| 186 | + ]]></format> |
| 187 | + </remarks> |
154 | 188 | </Docs> |
155 | 189 | </Member> |
156 | 190 | <Member MemberName="CreateDbCommand"> |
|
171 | 205 | <Parameter Name="commandText" Type="System.String" /> |
172 | 206 | </Parameters> |
173 | 207 | <Docs> |
174 | | - <param name="commandText">To be added.</param> |
175 | | - <summary>To be added.</summary> |
176 | | - <returns>To be added.</returns> |
177 | | - <remarks>To be added.</remarks> |
| 208 | + <param name="commandText">The text command with which to initialize the <see cref="T:System.Data.Common.DbCommand" /> that this method returns.</param> |
| 209 | + <summary>Returns a <see cref="T:System.Data.Common.DbCommand" /> that's ready for execution against the <see cref="T:System.Data.Common.DbDataSource" />.</summary> |
| 210 | + <returns>A <see cref="T:System.Data.Common.DbCommand" /> that's ready for execution against the <see cref="T:System.Data.Common.DbDataSource" />.</returns> |
| 211 | + <remarks> |
| 212 | + <format type="text/markdown"><![CDATA[ |
| 213 | + |
| 214 | +## Remarks |
| 215 | + This method is meant to be overridden by implementing ADO.NET providers, and is not a user-facing API. |
| 216 | +
|
| 217 | + ]]></format> |
| 218 | + </remarks> |
178 | 219 | </Docs> |
179 | 220 | </Member> |
180 | 221 | <Member MemberName="CreateDbConnection"> |
|
194 | 235 | </ReturnValue> |
195 | 236 | <Parameters /> |
196 | 237 | <Docs> |
197 | | - <summary>To be added.</summary> |
198 | | - <returns>To be added.</returns> |
199 | | - <remarks>To be added.</remarks> |
| 238 | + <summary>Returns a <see cref="T:System.Data.Common.DbBatch" /> that's ready for execution against the <see cref="T:System.Data.Common.DbDataSource" />.</summary> |
| 239 | + <returns>A <see cref="T:System.Data.Common.DbBatch" /> that's ready for execution against the <see cref="T:System.Data.Common.DbDataSource" />.</returns> |
| 240 | + <remarks> |
| 241 | + <format type="text/markdown"><![CDATA[ |
| 242 | + |
| 243 | +## Remarks |
| 244 | + This method is meant to be overridden by implementing ADO.NET providers, and is not a user-facing API. |
| 245 | +
|
| 246 | + ]]></format> |
| 247 | + </remarks> |
200 | 248 | </Docs> |
201 | 249 | </Member> |
202 | 250 | <Member MemberName="Dispose"> |
|
219 | 267 | </ReturnValue> |
220 | 268 | <Parameters /> |
221 | 269 | <Docs> |
222 | | - <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary> |
223 | | - <remarks>To be added.</remarks> |
| 270 | + <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.</summary> |
| 271 | + <remarks> |
| 272 | + <format type="text/markdown"><![CDATA[ |
| 273 | + |
| 274 | +## Remarks |
| 275 | + If the current instance of <xref:System.Data.Common.DbDataSource> represents a connection pool, disposing it should close all idle connections, and arrange for busy connections to be closed as soon as possible. |
| 276 | +
|
| 277 | + ]]></format> |
| 278 | + </remarks> |
224 | 279 | </Docs> |
225 | 280 | </Member> |
226 | 281 | <Member MemberName="Dispose"> |
|
242 | 297 | <Parameter Name="disposing" Type="System.Boolean" /> |
243 | 298 | </Parameters> |
244 | 299 | <Docs> |
245 | | - <param name="disposing">To be added.</param> |
246 | | - <summary>To be added.</summary> |
247 | | - <remarks>To be added.</remarks> |
| 300 | + <param name="disposing"><see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param> |
| 301 | + <summary>Called by the Dispose() and Finalize() methods to release the managed and unmanaged resources used by the current instance of the <see cref="T:System.Data.Common.DbDataSource" /> class.</summary> |
| 302 | + <remarks> |
| 303 | + <format type="text/markdown"><![CDATA[ |
| 304 | + |
| 305 | +## Remarks |
| 306 | + This method is meant to be overridden by implementing ADO.NET providers, and is not a user-facing API. |
| 307 | +
|
| 308 | + ]]></format> |
| 309 | + </remarks> |
248 | 310 | </Docs> |
249 | 311 | </Member> |
250 | 312 | <Member MemberName="DisposeAsync"> |
|
269 | 331 | <Docs> |
270 | 332 | <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.</summary> |
271 | 333 | <returns>A task that represents the asynchronous dispose operation.</returns> |
272 | | - <remarks>To be added.</remarks> |
| 334 | + <remarks> |
| 335 | + <format type="text/markdown"><![CDATA[ |
| 336 | + |
| 337 | +## Remarks |
| 338 | + If the current instance of <xref:System.Data.Common.DbDataSource> represents a connection pool, disposing it should close all idle connections, and arrange for busy connections to be closed as soon as possible. |
| 339 | +
|
| 340 | + ]]></format> |
| 341 | + </remarks> |
273 | 342 | </Docs> |
274 | 343 | </Member> |
275 | 344 | <Member MemberName="DisposeAsyncCore"> |
|
289 | 358 | </ReturnValue> |
290 | 359 | <Parameters /> |
291 | 360 | <Docs> |
292 | | - <summary>To be added.</summary> |
293 | | - <returns>To be added.</returns> |
294 | | - <remarks>To be added.</remarks> |
| 361 | + <summary>Performs application-defined tasks associated with freeing, releasing, or resetting managed resources asynchronously.</summary> |
| 362 | + <returns>A task that represents the asynchronous dispose operation.</returns> |
| 363 | + <remarks> |
| 364 | + <format type="text/markdown"><![CDATA[ |
| 365 | + |
| 366 | +## Remarks |
| 367 | + This method is meant to be overridden by implementing ADO.NET providers, and is not a user-facing API. |
| 368 | +
|
| 369 | + ]]></format> |
| 370 | + </remarks> |
295 | 371 | </Docs> |
296 | 372 | </Member> |
297 | 373 | <Member MemberName="OpenConnection"> |
|
311 | 387 | </ReturnValue> |
312 | 388 | <Parameters /> |
313 | 389 | <Docs> |
314 | | - <summary>To be added.</summary> |
315 | | - <returns>To be added.</returns> |
316 | | - <remarks>To be added.</remarks> |
| 390 | + <summary>Returns a new, open connection to the database represented by this <see cref="T:System.Data.Common.DbDataSource" />.</summary> |
| 391 | + <returns>A new, open connection to the database represented by this <see cref="T:System.Data.Common.DbDataSource" />.</returns> |
| 392 | + <remarks> |
| 393 | + <format type="text/markdown"><![CDATA[ |
| 394 | + |
| 395 | +## Remarks |
| 396 | + The returned connection is already open, and is ready for immediate use. |
| 397 | +
|
| 398 | + It is the responsibility of the caller to properly dispose the connection returned by this method. Failure to do so may result in a connection leak. |
| 399 | + |
| 400 | + ]]></format> |
| 401 | + </remarks> |
317 | 402 | </Docs> |
318 | 403 | </Member> |
319 | 404 | <Member MemberName="OpenConnectionAsync"> |
|
334 | 419 | <Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /> |
335 | 420 | </Parameters> |
336 | 421 | <Docs> |
337 | | - <param name="cancellationToken">To be added.</param> |
338 | | - <summary>To be added.</summary> |
339 | | - <returns>To be added.</returns> |
340 | | - <remarks>To be added.</remarks> |
| 422 | + <param name="cancellationToken">A token to cancel the asynchronous operation.</param> |
| 423 | + <summary>Asynchronously returns a new, open connection to the database represented by this <see cref="T:System.Data.Common.DbDataSource" />.</summary> |
| 424 | + <returns>A new, open connection to the database represented by this <see cref="T:System.Data.Common.DbDataSource" />.</returns> |
| 425 | + <remarks> |
| 426 | + <format type="text/markdown"><![CDATA[ |
| 427 | + |
| 428 | +## Remarks |
| 429 | + The returned connection is already open, and is ready for immediate use. |
| 430 | +
|
| 431 | + It is the responsibility of the caller to properly dispose the connection returned by this method. Failure to do so may result in a connection leak. |
| 432 | + |
| 433 | + ]]></format> |
| 434 | + </remarks> |
341 | 435 | </Docs> |
342 | 436 | </Member> |
343 | 437 | <Member MemberName="OpenDbConnection"> |
|
357 | 451 | </ReturnValue> |
358 | 452 | <Parameters /> |
359 | 453 | <Docs> |
360 | | - <summary>To be added.</summary> |
361 | | - <returns>To be added.</returns> |
362 | | - <remarks>To be added.</remarks> |
| 454 | + <summary>Returns a new, open connection to the database represented by this <see cref="T:System.Data.Common.DbDataSource" />.</summary> |
| 455 | + <returns>A new, open connection to the database represented by this <see cref="T:System.Data.Common.DbDataSource" />.</returns> |
| 456 | + <remarks> |
| 457 | + <format type="text/markdown"><![CDATA[ |
| 458 | + |
| 459 | +## Remarks |
| 460 | + This method is meant to be overridden by implementing ADO.NET providers, and is not a user-facing API. |
| 461 | +
|
| 462 | + ]]></format> |
| 463 | + </remarks> |
363 | 464 | </Docs> |
364 | 465 | </Member> |
365 | 466 | <Member MemberName="OpenDbConnectionAsync"> |
|
380 | 481 | <Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" /> |
381 | 482 | </Parameters> |
382 | 483 | <Docs> |
383 | | - <param name="cancellationToken">To be added.</param> |
384 | | - <summary>To be added.</summary> |
385 | | - <returns>To be added.</returns> |
386 | | - <remarks>To be added.</remarks> |
| 484 | + <param name="cancellationToken">A token to cancel the asynchronous operation.</param> |
| 485 | + <summary>Asynchronously returns a new, open connection to the database represented by this <see cref="T:System.Data.Common.DbDataSource" />.</summary> |
| 486 | + <returns>A new, open connection to the database represented by this <see cref="T:System.Data.Common.DbDataSource" />.</returns> |
| 487 | + <remarks> |
| 488 | + <format type="text/markdown"><![CDATA[ |
| 489 | + |
| 490 | +## Remarks |
| 491 | + This method is meant to be overridden by implementing ADO.NET providers, and is not a user-facing API. |
| 492 | +
|
| 493 | + ]]></format> |
| 494 | + </remarks> |
387 | 495 | </Docs> |
388 | 496 | </Member> |
389 | 497 | </Members> |
|
0 commit comments