Skip to content

Commit 1df0ae7

Browse files
authored
Merge pull request #3201 from MicrosoftDocs/master
11/1 AM Publish
2 parents be938c7 + d474312 commit 1df0ae7

36 files changed

+370
-356
lines changed

.openpublishing.publish.config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
"git_repository_branch_open_to_public_contributors": "master",
9797
"skip_source_output_uploading": false,
9898
"need_preview_pull_request": true,
99+
"need_pr_comments": false,
99100
"contribution_branch_mappings": {},
100101
"dependent_repositories": [
101102
{

.openpublishing.redirection.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6817,6 +6817,11 @@
68176817
"redirect_url": "/visualstudio/extensibility/upgrading-custom-project-and-item-templates-for-visual-studio-2017?view=vs-2015",
68186818
"redirect_document_id": false
68196819
},
6820+
{
6821+
"source_path": "docs/docker/index.md",
6822+
"redirect_url": "/dotnet/standard/containerized-lifecycle-architecture/design-develop-containerized-apps/visual-studio-tools-for-docker?toc=/visualstudio/docker/toc.json&bc=/visualstudio/docker/breadcrumb/toc.json",
6823+
"redirect_document_id": false
6824+
},
68206825
{
68216826
"source_path": "docs/cross-platform/visual-studio-and-xamarin.md",
68226827
"redirect_url": "/xamarin/",
@@ -6856,11 +6861,6 @@
68566861
"source_path": "docs/cross-platform/application-lifecycle-management-alm-with-xamarin-apps.md",
68576862
"redirect_url": "/xamarin/tools/ci/devops/",
68586863
"redirect_document_id": true
6859-
},
6860-
{
6861-
"source_path": "docs/docker/index.md",
6862-
"redirect_url": "/dotnet/standard/containerized-lifecycle-architecture/design-develop-containerized-apps/visual-studio-tools-for-docker?toc=/visualstudio/docker/toc.json&bc=/visualstudio/docker/breadcrumb/toc.json",
6863-
"redirect_document_id": false
68646864
}
68656865
]
68666866
}

docs/azure/toc.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
expanded: true
66
items:
77
- name: Publish an ASP.NET Core app to Azure
8-
href: /aspnet/core/tutorials/publish-to-azure-webapp-using-vs?toc=/visualstudio/azure/toc.json&bc=/visualstudio/azure/breadcrumb/toc.json&view=aspnetcore-2.1
8+
href: /aspnet/core/tutorials/publish-to-azure-webapp-using-vs?view=aspnetcore-2.1
99
- name: Publish a .NET TODO List Web App to Azure
10-
href: /dotnet/azure/dotnet-quickstart-vs?toc=/visualstudio/azure/toc.json&bc=/visualstudio/azure/breadcrumb/toc.json&view=azure-dotnet
10+
href: /dotnet/azure/dotnet-quickstart-vs?view=azure-dotnet
1111
- name: Publish Azure Functions
1212
href: /azure/azure-functions/functions-develop-vs?toc=/visualstudio/azure/toc.json&bc=/visualstudio/azure/breadcrumb/toc.json
1313
- name: Continuous deployment to Azure with Visual Studio and Git with ASP.NET Core
14-
href: /aspnet/core/host-and-deploy/azure-apps/azure-continuous-deploymenttoc=/visualstudio/azure/toc.json&bc=/visualstudio/azure/breadcrumb/toc.json&?view=aspnetcore-2.1
14+
href: /aspnet/core/host-and-deploy/azure-apps/azure-continuous-deployment?view=aspnetcore-2.1
1515
- name: Continuous deployment to Azure with Azure Pipelines
16-
href: /azure/devops/pipelines/get-started-yaml?toc=/visualstudio/azure/toc.json&bc=/visualstudio/azure/breadcrumb/toc.json&view=vsts
16+
href: /azure/devops/pipelines/get-started-yaml?view=vsts
1717
- name: Publish an ASP.NET Web App to an Azure VM
1818
href: /azure/virtual-machines/windows/publish-web-app-from-visual-studio?toc=/visualstudio/azure/toc.json&bc=/visualstudio/azure/breadcrumb/toc.json
1919
- name: Connect to Azure Services
@@ -35,7 +35,7 @@
3535
- name: Facial recognition
3636
href: /azure/cognitive-services/face/vs-face-connected-service?toc=/visualstudio/azure/toc.json&bc=/visualstudio/azure/breadcrumb/toc.json
3737
- name: Computer Vision
38-
href: /azure/cognitive-services/computer-vision/vs-computer-vision-connected-service?toc=/visualstudio/azure/vs-azure/toc.json&bc=/visualstudio/azure/breadcrumb/toc.json
38+
href: /azure/cognitive-services/computer-vision/vs-computer-vision-connected-service?toc=/visualstudio/azure/toc.json&bc=/visualstudio/azure/breadcrumb/toc.json
3939
- name: Cloud Services
4040
expanded: false
4141
items:

docs/cross-platform/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
22
layout: LandingPage
3+
title: Mobile Development with C++
4+
description: Create native C++ apps for iOS, Android and Windows devices with Visual Studio.
5+
ms.date: 10/31/2018
36
author: jasongroce
4-
ms.author: apexprodleads
7+
ms.author: jasgro
58
ms.topic: landing-page
69
ms.prod: visual-studio-dev15
710
ms.technology: vs-ide-mobile
8-
title: Mobile Development with C++ Documentation | Microsoft Docs
9-
description: Create native C++ apps for iOS, Android and Windows devices with Visual Studio.
1011
ms.workload:
1112
- apexprodleads
1213
---
13-
1414
# Mobile development with C++ documentation
1515

1616
Create native C++ apps for iOS, Android, and Windows devices with Visual Studio.

docs/data-tools/directly-access-the-database-with-a-tableadapter.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,39 +27,41 @@ ms.workload:
2727
- "data-storage"
2828
---
2929
# Directly access the database with a TableAdapter
30+
3031
In addition to the `InsertCommand`, `UpdateCommand`, and `DeleteCommand`, TableAdapters are created with methods that can be run directly against the database. You can call these methods (`TableAdapter.Insert`, `TableAdapter.Update`, and `TableAdapter.Delete`) to manipulate data directly in the database.
3132

32-
If you don't want to create these direct methods, set the TableAdapter's `GenerateDbDirectMethods` property to `false` in the **Properties** window. If any queries are added to a TableAdapter in addition to the TableAdapter's main query, they are standalone queries that don't generate these `DbDirect` methods.
33+
If you don't want to create these direct methods, set the TableAdapter's `GenerateDbDirectMethods` property to `false` in the **Properties** window. If any queries are added to a TableAdapter in addition to the TableAdapter's main query, they are standalone queries that don't generate these `DbDirect` methods.
3334

3435
## Send commands directly to a database
35-
Call the TableAdapter `DbDirect` method that performs the task you are trying to accomplish.
3636

37-
#### To insert new records directly into a database
37+
Call the TableAdapter `DbDirect` method that performs the task you are trying to accomplish.
38+
39+
### To insert new records directly into a database
3840

3941
- Call the TableAdapter's `Insert` method, passing in the values for each column as parameters. The following procedure uses the `Region` table in the Northwind database as an example.
4042

4143
> [!NOTE]
42-
> If you do not have an instance available, instantiate the TableAdapter that you want to use.
44+
> If you do not have an instance available, instantiate the TableAdapter that you want to use.
4345
4446
[!code-vb[VbRaddataSaving#15](../data-tools/codesnippet/VisualBasic/directly-access-the-database-with-a-tableadapter_1.vb)]
4547
[!code-csharp[VbRaddataSaving#15](../data-tools/codesnippet/CSharp/directly-access-the-database-with-a-tableadapter_1.cs)]
4648

47-
#### To update records directly in a database
49+
### To update records directly in a database
4850

4951
- Call the TableAdapter's `Update` method, passing in the new and original values for each column as parameters.
5052

5153
> [!NOTE]
52-
> If you do not have an instance available, instantiate the TableAdapter that you want to use.
54+
> If you do not have an instance available, instantiate the TableAdapter that you want to use.
5355
5456
[!code-vb[VbRaddataSaving#18](../data-tools/codesnippet/VisualBasic/directly-access-the-database-with-a-tableadapter_2.vb)]
5557
[!code-csharp[VbRaddataSaving#18](../data-tools/codesnippet/CSharp/directly-access-the-database-with-a-tableadapter_2.cs)]
5658

57-
#### To delete records directly from a database
59+
### To delete records directly from a database
5860

5961
- Call the TableAdapter's `Delete` method, passing in the values for each column as parameters of the `Delete` method. The following procedure uses the `Region` table in the Northwind database as an example.
6062

6163
> [!NOTE]
62-
> If you do not have an instance available, instantiate the TableAdapter that you want to use.
64+
> If you do not have an instance available, instantiate the TableAdapter that you want to use.
6365
6466
[!code-vb[VbRaddataSaving#21](../data-tools/codesnippet/VisualBasic/directly-access-the-database-with-a-tableadapter_3.vb)]
6567
[!code-csharp[VbRaddataSaving#21](../data-tools/codesnippet/CSharp/directly-access-the-database-with-a-tableadapter_3.cs)]

docs/data-tools/extend-the-functionality-of-a-tableadapter.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,20 @@ ms.workload:
1919
- "data-storage"
2020
---
2121
# Extend the functionality of a TableAdapter
22+
2223
You can extend the functionality of a TableAdapter by adding code to the TableAdapter's partial class file.
2324

24-
The code that defines a TableAdapter is regenerated when any changes are made to the TableAdapter in the **Dataset Designer**, or when a wizard modifies the configuration of a TableAdapter. To prevent your code from being deleted during the regeneration of a TableAdapter, add code to the TableAdapter's partial class file.
25+
The code that defines a TableAdapter is regenerated when any changes are made to the TableAdapter in the **Dataset Designer**, or when a wizard modifies the configuration of a TableAdapter. To prevent your code from being deleted during the regeneration of a TableAdapter, add code to the TableAdapter's partial class file.
2526

26-
Partial classes allow code for a specific class to be divided among multiple physical files. For more information, see [Partial](/dotnet/visual-basic/language-reference/modifiers/partial) or [partial (Type)](/dotnet/csharp/language-reference/keywords/partial-type).
27+
Partial classes allow code for a specific class to be divided among multiple physical files. For more information, see [Partial](/dotnet/visual-basic/language-reference/modifiers/partial) or [partial (Type)](/dotnet/csharp/language-reference/keywords/partial-type).
2728

2829
## Locate TableAdapters in code
29-
While TableAdapters are designed with the **Dataset Designer**, the TableAdapter classes that are generated are not nested classes of <xref:System.Data.DataSet>. TableAdapters are located in a namespace based on the name of the TableAdapter's associated dataset. For example, if your application contains a dataset named `HRDataSet`, the TableAdapters would be located in the `HRDataSetTableAdapters` namespace. (The naming convention follows this pattern: *DatasetName* + `TableAdapters`).
3030

31-
The following example assumes a TableAdapter named `CustomersTableAdapter`is in a project with `NorthwindDataSet`.
31+
While TableAdapters are designed with the **Dataset Designer**, the TableAdapter classes that are generated are not nested classes of <xref:System.Data.DataSet>. TableAdapters are located in a namespace based on the name of the TableAdapter's associated dataset. For example, if your application contains a dataset named `HRDataSet`, the TableAdapters would be located in the `HRDataSetTableAdapters` namespace. (The naming convention follows this pattern: *DatasetName* + `TableAdapters`).
32+
33+
The following example assumes a TableAdapter named `CustomersTableAdapter`is in a project with `NorthwindDataSet`.
3234

33-
#### To create a partial class for a TableAdapter
35+
### To create a partial class for a TableAdapter
3436

3537
1. Add a new class to your project by going to the **Project** menu and selecting **Add Class**.
3638

docs/data-tools/filter-and-sort-data-in-a-windows-forms-application.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ ms.workload:
2323
- "data-storage"
2424
---
2525
# Filter and sort data in a Windows Forms application
26+
2627
You filter data by setting the <xref:System.Windows.Forms.BindingSource.Filter%2A> property to a string expression that returns the desired records.
2728

28-
You sort data by setting the <xref:System.Windows.Forms.BindingSource.Sort%2A> property to the column name on which you want to sort; append `DESC` to sort in descending order, or append `ASC` to sort in ascending order.
29+
You sort data by setting the <xref:System.Windows.Forms.BindingSource.Sort%2A> property to the column name on which you want to sort; append `DESC` to sort in descending order, or append `ASC` to sort in ascending order.
2930

3031
> [!NOTE]
31-
> If your application does not use <xref:System.Windows.Forms.BindingSource> components, you can filter and sort data by using <xref:System.Data.DataView> objects. For more information, see [DataViews](/dotnet/framework/data/adonet/dataset-datatable-dataview/dataviews).
32+
> If your application does not use <xref:System.Windows.Forms.BindingSource> components, you can filter and sort data by using <xref:System.Data.DataView> objects. For more information, see [DataViews](/dotnet/framework/data/adonet/dataset-datatable-dataview/dataviews).
3233
3334
## To filter data by using a BindingSource component
3435

docs/data-tools/handle-a-concurrency-exception.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,31 +156,31 @@ When you attempt to perform an update and an exception is raised, you generally
156156
157157
1. Add the following code below the `Form1_Load` method:
158158

159-
[!code-csharp[VbRaddataConcurrency#1](../data-tools/codesnippet/CSharp/handle-a-concurrency-exception_1.cs)]
160-
[!code-vb[VbRaddataConcurrency#1](../data-tools/codesnippet/VisualBasic/handle-a-concurrency-exception_1.vb)]
159+
[!code-csharp[VbRaddataConcurrency#1](../data-tools/codesnippet/CSharp/handle-a-concurrency-exception_1.cs)]
160+
[!code-vb[VbRaddataConcurrency#1](../data-tools/codesnippet/VisualBasic/handle-a-concurrency-exception_1.vb)]
161161

162162
2. Replace the `CustomersBindingNavigatorSaveItem_Click` method to call the `UpdateDatabase` method so it looks like the following:
163163

164-
[!code-csharp[VbRaddataConcurrency#2](../data-tools/codesnippet/CSharp/handle-a-concurrency-exception_2.cs)]
165-
[!code-vb[VbRaddataConcurrency#2](../data-tools/codesnippet/VisualBasic/handle-a-concurrency-exception_2.vb)]
164+
[!code-csharp[VbRaddataConcurrency#2](../data-tools/codesnippet/CSharp/handle-a-concurrency-exception_2.cs)]
165+
[!code-vb[VbRaddataConcurrency#2](../data-tools/codesnippet/VisualBasic/handle-a-concurrency-exception_2.vb)]
166166

167167
### Display choices to the user
168168

169169
The code you just wrote calls the `CreateMessage` procedure to display error information to the user. For this walkthrough, you use a message box to display the different versions of the record to the user. This enables the user to choose whether to overwrite the record with the changes or cancel the edit. Once the user selects an option (clicks a button) on the message box, the response is passed to the `ProcessDialogResult` method.
170170

171171
Create the message by adding the following code to the **Code Editor**. Enter this code below the `UpdateDatabase` method:
172172

173-
[!code-csharp[VbRaddataConcurrency#4](../data-tools/codesnippet/CSharp/handle-a-concurrency-exception_3.cs)]
174-
[!code-vb[VbRaddataConcurrency#4](../data-tools/codesnippet/VisualBasic/handle-a-concurrency-exception_3.vb)]
173+
[!code-csharp[VbRaddataConcurrency#4](../data-tools/codesnippet/CSharp/handle-a-concurrency-exception_3.cs)]
174+
[!code-vb[VbRaddataConcurrency#4](../data-tools/codesnippet/VisualBasic/handle-a-concurrency-exception_3.vb)]
175175

176176
### Process the user's response
177177

178178
You also need code to process the user's response to the message box. The options are either to overwrite the current record in the database with the proposed change, or abandon the local changes and refresh the data table with the record that's currently in the database. If the user chooses **Yes**, the <xref:System.Data.DataTable.Merge%2A> method is called with the *preserveChanges* argument set to **true**. This causes the update attempt to be successful, because the original version of the record now matches the record in the database.
179179

180180
Add the following code below the code that was added in the previous section:
181181

182-
[!code-csharp[VbRaddataConcurrency#3](../data-tools/codesnippet/CSharp/handle-a-concurrency-exception_4.cs)]
183-
[!code-vb[VbRaddataConcurrency#3](../data-tools/codesnippet/VisualBasic/handle-a-concurrency-exception_4.vb)]
182+
[!code-csharp[VbRaddataConcurrency#3](../data-tools/codesnippet/CSharp/handle-a-concurrency-exception_4.cs)]
183+
[!code-vb[VbRaddataConcurrency#3](../data-tools/codesnippet/VisualBasic/handle-a-concurrency-exception_4.vb)]
184184

185185
## Test the form
186186

0 commit comments

Comments
 (0)