Skip to content

Commit

Permalink
Merge pull request #11301 from MicrosoftDocs/ghogen-patch-7
Browse files Browse the repository at this point in the history
Review and update date
  • Loading branch information
prmerger-automator[bot] committed Jun 5, 2023
2 parents c0d9749 + 15d10c3 commit 493a1b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/data-tools/add-new-data-sources.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Add new data sources
description: Add new data sources in Visual Studio. A data source is a .NET object that connects to a data store and make the data available to a .NET application.
ms.date: 04/12/2022
ms.date: 06/01/2023
ms.topic: how-to
f1_keywords:
- vs.datasource.datasourcefieldspicker
Expand Down Expand Up @@ -101,15 +101,15 @@ You can create a data source from the following types of services:
- Web services

> [!NOTE]
> The items that appear in the **Data Sources** window are dependent on the data that the service returns. Some services might not provide enough information for the **Data Source Configuration Wizard** to create bindable objects. For example, if the service returns an untyped dataset, no items appear in the **Data Sources** window when you complete the wizard. This is because untyped datasets do not provide a schema, and therefore the wizard does not have enough information to create the data source.
> The items that appear in the **Data Sources** window are dependent on the data that the service returns. Some services might not provide enough information for the **Data Source Configuration Wizard** to create bindable objects. For example, if the service returns an untyped dataset, no items appear in the **Data Sources** window when you complete the wizard. This is because untyped datasets do not provide a schema, and therefore the wizard doesn't have enough information to create the data source.
## Data source for an object

You can create a data source from any object that exposes one or more public properties by running the **Data Source Configuration Wizard** and then selecting the **Object** data-source type. All public properties of an object are displayed in the **Data Sources** window. If you are using Entity Framework and have generated a model, this is where you find the entity classes that are the data sources for your application.
You can create a data source from any object that exposes one or more public properties by running the **Data Source Configuration Wizard** and then selecting the **Object** data-source type. All public properties of an object are displayed in the **Data Sources** window. If you're using Entity Framework and have generated a model, this is where you find the entity classes that are the data sources for your application.

On the **Select the Data Objects** page, expand the nodes in the tree view to locate the objects that you want to bind to. The tree view contains nodes for your project and for assemblies and other projects that are referenced by your project.

If you want to bind to an object in an assembly or project that does not appear in the tree view, click **Add Reference** and use the **Add Reference Dialog Box** to add a reference to the assembly or project. After you add the reference, the assembly or project is added to the tree view.
If you want to bind to an object in an assembly or project that doesn't appear in the tree view, click **Add Reference** and use the **Add Reference Dialog Box** to add a reference to the assembly or project. After you add the reference, the assembly or project is added to the tree view.

> [!NOTE]
> You may need to build the project that contains your objects before the objects appear in the tree view.
Expand Down

0 comments on commit 493a1b1

Please sign in to comment.