Skip to content

Commit 1983deb

Browse files
committed
fixed spacing
1 parent e3d61c6 commit 1983deb

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/data-tools/create-and-configure-tableadapters.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ TableAdapters provide communication between your application and a database. The
7575

7676
Any changes that you make to the TableAdapter's main `Fill` method are reflected in the schema of the associated data table. For example, removing a column from the query in the main `Fill` method also removes the column from the associated data table. Additionally, removing the column from the main `Fill` method removes the column from any additional queries for that TableAdapter.
7777

78-
You can use the TableAdapter Query Configuration Wizard to create and edit additional queries for the TableAdapter. These additional queries must conform to the table schema, unless they return a scalar value. Each additional query has a name that you specify. The following example shows you how to call an additional query named `FillByCity`: `CustomersTableAdapter.FillByCity(NorthwindDataSet.Customers, "Seattle")`.
78+
You can use the TableAdapter Query Configuration Wizard to create and edit additional queries for the TableAdapter. These additional queries must conform to the table schema, unless they return a scalar value. Each additional query has a name that you specify.
79+
80+
The following example shows you how to call an additional query named `FillByCity`:
81+
82+
`CustomersTableAdapter.FillByCity(NorthwindDataSet.Customers, "Seattle")`
7983

8084
#### To start the TableAdapter Query Configuration Wizard with a new query
8185

docs/data-tools/insert-new-records-into-a-database.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ To insert new records into a database, you can use the `TableAdapter.Update` met
5858

5959
2. After the new rows are added to the <xref:System.Data.DataTable>, call the `TableAdapter.Update` method. You can control the amount of data to update by passing in either an entire <xref:System.Data.DataSet>, a <xref:System.Data.DataTable>, an array of <xref:System.Data.DataRow>s, or a single <xref:System.Data.DataRow>.
6060

61-
The following code shows how to add a new record to a <xref:System.Data.DataTable> and then call the `TableAdapter.Update` method to save the new row to the database. (This example uses the `Region` table in the Northwind database.)
61+
The following code shows how to add a new record to a <xref:System.Data.DataTable> and then call the `TableAdapter.Update` method to save the new row to the database. (This example uses the `Region` table in the Northwind database.)
6262

63-
[!code-vb[VbRaddataSaving#14](../data-tools/codesnippet/VisualBasic/insert-new-records-into-a-database_1.vb)]
64-
[!code-csharp[VbRaddataSaving#14](../data-tools/codesnippet/CSharp/insert-new-records-into-a-database_1.cs)]
63+
[!code-vb[VbRaddataSaving#14](../data-tools/codesnippet/VisualBasic/insert-new-records-into-a-database_1.vb)]
64+
[!code-csharp[VbRaddataSaving#14](../data-tools/codesnippet/CSharp/insert-new-records-into-a-database_1.cs)]
6565

6666
#### To insert new records into a database by using the TableAdapter.Insert method
6767
If your application uses objects to store data, you can use the `TableAdapter.Insert` method to create new rows directly in the database. The `Insert` method accepts the individual values for each column as parameters. Calling the method inserts a new record into the database with the parameter values passed in.

0 commit comments

Comments
 (0)