You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/code-quality/in-source-suppression-overview.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ In C++/CLI, use the macros CA\_SUPPRESS\_MESSAGE or CA\_GLOBAL\_SUPPRESS_MESSAGE
29
29
> You should not use in-source suppressions on release builds, to prevent shipping the in-source suppression metadata accidentally. Additionally, because of the processing cost of in-source suppression, the performance of your application can be degraded.
30
30
31
31
> [!NOTE]
32
-
> If you migrate a project to Visual Studio 2017, you might suddenly be faced with an overwhelming number of code analysis warnings. If you aren't ready to fix the warnings and want to temporarily turn code analysis off, open the project's property pages (**Project** > ***project* Properties...**) and go to the **Code Analysis** tab. Deselect **Enable Code Analysis on Build**, and then rebuild your project. Alternatively, you can select a different, smaller rule set to run against the code. Remember to turn code analysis back on when you are ready to fix the warnings.
32
+
> If you migrate a project to Visual Studio 2017, you might suddenly be faced with an overwhelming number of code analysis warnings. If you aren't ready to fix the warnings and want to temporarily turn code analysis off, open the project's property pages (**Project** > **\<project> Properties**) and go to the **Code Analysis** tab. Deselect **Enable Code Analysis on Build**, and then rebuild your project. Alternatively, you can select a different, smaller rule set to run against the code. Remember to turn code analysis back on when you are ready to fix the warnings.
Copy file name to clipboardExpand all lines: docs/data-tools/create-a-simple-data-application-with-wpf-and-entity-framework-6.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ This example uses SQL Server Express LocalDB and the Northwind sample database.
26
26
27
27
2. Install the Northwind sample database by following these steps:
28
28
29
-
1. In Visual Studio, open the **SQL Server Object Explorer** window. (**SQL Server Object Explorer** is installed as part of the **Data storage and processing** workload in the **Visual Studio Installer**.) Expand the **SQL Server** node. Right-click on your LocalDB instance and select **New Query...**.
29
+
1. In Visual Studio, open the **SQL Server Object Explorer** window. (**SQL Server Object Explorer** is installed as part of the **Data storage and processing** workload in the **Visual Studio Installer**.) Expand the **SQL Server** node. Right-click on your LocalDB instance and select **New Query**.
Copy file name to clipboardExpand all lines: docs/data-tools/how-to-add-update-or-remove-a-wcf-data-service-reference.md
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -17,16 +17,16 @@ ms.technology: vs-data-tools
17
17
ms.workload:
18
18
- "data-storage"
19
19
---
20
-
# How to: Add, Update, or Remove a WCF Data Service Reference
20
+
# How to: Add, update, or remove a WCF data service reference
21
21
A *service reference* enables a project to access one or more [!INCLUDE[ssAstoria](../data-tools/includes/ssastoria_md.md)]. Use the **Add Service Reference** dialog box to search for [!INCLUDE[ssAstoria](../data-tools/includes/ssastoria_md.md)] in the current solution, locally, on a local area network, or on the Internet.
1. In **Solution Explorer**, right-click the name of the project that you want to add the service to, and then click **Add Service Reference**.
29
+
1. In **Solution Explorer**, right-click the name of the project to which you want to add the service, and then click **Add Service Reference**.
30
30
31
31
The **Add Service Reference** dialog box appears.
32
32
@@ -37,19 +37,19 @@ A *service reference* enables a project to access one or more [!INCLUDE[ssAstori
37
37
38
38
You can also select the URL from the **Address** list, which stores the previous 15 URLs at which valid service metadata was found.
39
39
40
-
A progress bar is displayed when the search is being performed. You can stop the search at any time by clicking **Stop**.
40
+
A progress bar displays when the search is being performed. You can stop the search at any time by clicking **Stop**.
41
41
42
42
3. In the **Services** list, expand the node for the service that you want to use and select an entity set.
43
43
44
44
4. In the **Namespace** box, enter the namespace that you want to use for the reference.
45
45
46
46
5. Click **OK** to add the reference to the project.
47
47
48
-
A service client (proxy) is generated, and metadata that describes the service is added to the app.config file.
48
+
A service client (proxy) is generated, and metadata that describes the service is added to the *app.config* file.
49
49
50
-
####To add a reference to a service in the current solution
50
+
### To add a reference to a service in the current solution
51
51
52
-
1. In **Solution Explorer**, right-click the name of the project that you want to add the service to, and then click **Add Service Reference**.
52
+
1. In **Solution Explorer**, right-click the name of the project to which you want to add the service, and then click **Add Service Reference**.
53
53
54
54
The **Add Service Reference** dialog box appears.
55
55
@@ -63,29 +63,29 @@ A *service reference* enables a project to access one or more [!INCLUDE[ssAstori
63
63
64
64
5. Click **OK** to add the reference to the project.
65
65
66
-
A service client (proxy) is generated, and metadata that describes the service is added to the app.config file.
66
+
A service client (proxy) generates, and metadata that describes the service is added to the *app.config* file.
67
67
68
-
## Updating a Service Reference
69
-
The Entity Data Model for a [!INCLUDE[ssAstoria](../data-tools/includes/ssastoria_md.md)]will sometimes change. When this happens, the service reference must be updated.
68
+
## Update a service reference
69
+
The Entity Data Model for a [!INCLUDE[ssAstoria](../data-tools/includes/ssastoria_md.md)] sometimes changes. When this happens, you must update the service reference.
70
70
71
-
####To update a service reference
71
+
### To update a service reference
72
72
73
73
- In **Solution Explorer**, right-click the service reference and then click **Update Service Reference**.
74
74
75
-
A progress dialog box is displayed while the reference is updated from its original location, and the service client is regenerated to reflect any changes in the metadata.
75
+
A progress dialog box displays while the reference is updated from its original location, and the service client is regenerated to reflect any changes in the metadata.
76
76
77
-
## Removing a Service Reference
77
+
## Remove a service reference
78
78
If a service reference is no longer being used, you can remove it from your solution.
79
79
80
-
####To remove a service reference
80
+
### To remove a service reference
81
81
82
82
- In **Solution Explorer**, right-click the service reference and then click **Delete**.
83
83
84
-
The service client will be removed from the solution, and the metadata that describes the service will be removed from the app.config file.
84
+
The service client will be removed from the solution, and the metadata that describes the service will be removed from the *app.config* file.
85
85
86
86
> [!NOTE]
87
-
> Any code that references the service reference will have to be removed manually.
87
+
> Any code that references the service reference must be removed manually.
88
88
89
89
## See also
90
90
91
-
-[Windows Communication Foundation Services and WCF Data Services in Visual Studio](../data-tools/windows-communication-foundation-services-and-wcf-data-services-in-visual-studio.md)
91
+
-[Windows Communication Foundation Services and WCF data services in Visual Studio](../data-tools/windows-communication-foundation-services-and-wcf-data-services-in-visual-studio.md)
Copy file name to clipboardExpand all lines: docs/data-tools/how-to-add-validation-to-entity-classes.md
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -17,21 +17,21 @@ ms.workload:
17
17
# How to: Add validation to entity classes
18
18
*Validating* entity classes is the process of confirming that the values entered into data objects comply with the constraints in an object's schema, and also to the rules established for the application. Validating data before you send updates to the underlying database is a good practice that reduces errors. It also reduces the potential number of round trips between an application and the database.
19
19
20
-
The [LINQ to SQL Tools in Visual Studio](../data-tools/linq-to-sql-tools-in-visual-studio2.md) provides partial methods that enable users to extend the designer-generated code that runs during Inserts, Updates, and Deletes of complete entities, and also during and after individual column changes.
20
+
The [LINQ to SQL tools in Visual Studio](../data-tools/linq-to-sql-tools-in-visual-studio2.md) provides partial methods that enable users to extend the designer-generated code that runs during Inserts, Updates, and Deletes of complete entities, and also during and after individual column changes.
21
21
22
22
> [!NOTE]
23
-
> This topic provides the basic steps for adding validation to entity classes by using the [!INCLUDE[vs_ordesigner_short](../data-tools/includes/vs_ordesigner_short_md.md)]. Because it might be difficult to follow these generic steps without referring to a specific entity class, a walkthrough that uses actual data has been provided.
23
+
> This topic provides the basic steps for adding validation to entity classes by using the **O/R Designer**. Because it might be difficult to follow these generic steps without referring to a specific entity class, a walkthrough that uses actual data is provided.
24
24
25
-
## Adding Validation for Changes to the Value in a Specific Column
26
-
This procedure shows how to validate data when the value in a column changes. Because the validation is performed inside the class definition (instead of in the user interface) an exception is thrown if the value causes validation to fail. Implement error handling for the code in your application that attempts to change the column values.
25
+
## Add validation for changes to the value in a specific column
26
+
This procedure shows how to validate data when the value in a column changes. Because the validation is performed inside the class definition (instead of in the user interface), an exception is thrown if the value causes validation to fail. Implement error handling for the code in your application that attempts to change the column values.
####To validate data during a column's value change
30
+
### To validate data during a column's value change
31
31
32
-
1. Open or create a new LINQ to SQL Classes file (**.dbml** file) in the [!INCLUDE[vs_ordesigner_short](../data-tools/includes/vs_ordesigner_short_md.md)]. (Double-click the **.dbml** file in **Solution Explorer**.)
32
+
1. Open or create a new LINQ to SQL Classes file (**.dbml** file) in the **O/R Designer**. (Double-click the **.dbml** file in **Solution Explorer**.)
33
33
34
-
2. In the O/R Designer, right-click the class for which you want to add validation and then click **View Code**.
34
+
2. In the **O/R Designer**, right-click the class for which you want to add validation and then click **View Code**.
35
35
36
36
The Code Editor opens with a partial class for the selected entity class.
Copy file name to clipboardExpand all lines: docs/data-tools/how-to-assign-stored-procedures-to-perform-updates-inserts-and-deletes-o-r-designer.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ ms.workload:
13
13
---
14
14
# How to: Assign stored procedures to perform updates, inserts, and deletes (O/R Designer)
15
15
16
-
Stored procedures can be added to the O/R Designer and executed as typical <xref:System.Data.Linq.DataContext> methods. They can also be used to override the default LINQ to SQL runtime behavior that performs Inserts, Updates, and Deletes when changes are saved from entity classes to a database (for example, when calling the <xref:System.Data.Linq.DataContext.SubmitChanges%2A> method).
16
+
Stored procedures can be added to the **O/R Designer** and executed as typical <xref:System.Data.Linq.DataContext> methods. They can also be used to override the default LINQ to SQL runtime behavior that performs Inserts, Updates, and Deletes when changes are saved from entity classes to a database (for example, when calling the <xref:System.Data.Linq.DataContext.SubmitChanges%2A> method).
17
17
18
18
> [!NOTE]
19
19
> If your stored procedure returns values that need to be sent back to the client (for example, values calculated in the stored procedure), create output parameters in your stored procedures. If you cannot use output parameters, write a partial method implementation instead of relying on overrides generated by the O/R Designer. Members mapped to database-generated values need to be set to appropriate values after successful completion of INSERT or UPDATE operations. For more information, see [Responsibilities of the Developer In Overriding Default Behavior](/dotnet/framework/data/adonet/sql/linq/responsibilities-of-the-developer-in-overriding-default-behavior).
@@ -27,13 +27,13 @@ By default, the logic to update a database (inserts, updates, and deletes) with
####To assign stored procedures to override the default behavior of an entity class
30
+
### To assign stored procedures to override the default behavior of an entity class
31
31
32
-
1. Open the **LINQ to SQL** file in the designer. (Double-click the .dbml file in **Solution Explorer**.)
32
+
1. Open the **LINQ to SQL** file in the designer. (Double-click the **.dbml** file in **Solution Explorer**.)
33
33
34
34
2. In **Server Explorer** or **Database Explorer**, expand **Stored Procedures** and locate the stored procedures that you want to use for the Insert, Update, and/or Delete commands of the entity class.
35
35
36
-
3. Drag the stored procedure onto the O/R Designer.
36
+
3. Drag the stored procedure onto the **O/R Designer**.
37
37
38
38
The stored procedure is added to the methods pane as a <xref:System.Data.Linq.DataContext> method. For more information, see [DataContext Methods (O/R Designer)](../data-tools/datacontext-methods-o-r-designer.md).
39
39
@@ -47,21 +47,21 @@ By default, the logic to update a database (inserts, updates, and deletes) with
47
47
48
48
8. Select the desired stored procedure in the **Customize** list.
49
49
50
-
9. Inspect the list of **Method Arguments** and **Class Properties** to verify that the **Method Arguments** map to the appropriate **Class Properties**. Map the original method arguments (Original_*ArgumentName*) to the original properties (*PropertyName* (Original)) for Update and Delete commands.
50
+
9. Inspect the list of **Method Arguments** and **Class Properties** to verify that the **Method Arguments** map to the appropriate **Class Properties**. Map the original method arguments (`Original_<ArgumentName>`) to the original properties (`<PropertyName> (Original)`) for the `Update` and `Delete` commands.
51
51
52
52
> [!NOTE]
53
53
> By default, method arguments map to class properties when the names match. If changed property names no longer match between the table and the entity class, you might have to select the equivalent class property to map to if the designer cannot determine the correct mapping.
54
54
55
55
10. Click **OK** or **Apply**.
56
56
57
57
> [!NOTE]
58
-
> You can continue to configure the behavior for each class/behavior combination as long as you click **Apply** after you make each change. If you change the class or behavior before you click **Apply**, a warning dialog box providing an opportunity to apply any changes will appear.
58
+
> You can continue to configure the behavior for each class and behavior combination as long as you click **Apply** after you make each change. If you change the class or behavior before you click **Apply**, a warning dialog box appears and provides you an opportunity to apply your changes.
59
59
60
-
To revert to using the default runtime logic for updates, click the ellipsis next to the Insert, Update, or Delete command in the **Properties** window and then select **Use runtime** in the **Configure Behavior** dialog box.
60
+
To revert to using the default runtime logic for updates, click the ellipsis next to the **Insert**, **Update**, or **Delete** command in the **Properties** window and then select **Use runtime** in the **Configure Behavior** dialog box.
61
61
62
62
## See also
63
63
64
64
-[LINQ to SQL tools in Visual Studio](../data-tools/linq-to-sql-tools-in-visual-studio2.md)
0 commit comments