Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio won't update properties of my Data Source

I am using my class "Invoice" as a Data Source. But after adding more properties to it, Visual Studio refuses to refresh the data source and I can't find the new properties in my data source.

Tried restarting project, deleting and adding object as datasource again. Did not work.

like image 741
OMGKurtNilsen Avatar asked Apr 11 '11 13:04

OMGKurtNilsen


People also ask

How do I update my datasource?

To refresh data source fieldsEdit the data source. In the bottom left corner, click REFRESH FIELDS. If changes are found, click APPLY.

How do I change data source in Visual Studio?

Open your project in Visual Studio, and then choose Project > Add New Data Source to start the Data Source Configuration Wizard. Choose the type of data source to which you'll be connecting. Choose the database or databases that will be the data source for your dataset.

Which command should be clicked to open a new window where data source can be selected?

To open the Data Sources window, make sure your project is open, and then press Shift+Alt+D or choose View > Other Windows > Data Sources.

How do you add data sources?

Create a new data sourceIn the Connect to data tab, select the type of data you to which you want to connect. Select the specific data set and provide your authorization, if necessary. In the bottom right, click Add.


2 Answers

Problem was Intellisense going out of date due to changes in the Data Source.

Solution was to simply to rebuild the project.

like image 105
OMGKurtNilsen Avatar answered Oct 20 '22 07:10

OMGKurtNilsen


Are you using any source control ? also, .datasource file gets created under Properties folder, try to remove and re-add the object by opening Data Sources tab.

also your new properties in Invoice should have access modifiers (at least { get;} ) otherwise it might not show up AFAIK.

like image 29
Bek Raupov Avatar answered Oct 20 '22 06:10

Bek Raupov