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.
To refresh data source fieldsEdit the data source. In the bottom left corner, click REFRESH FIELDS. If changes are found, click APPLY.
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.
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.
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.
Problem was Intellisense going out of date due to changes in the Data Source.
Solution was to simply to rebuild the project.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With