Reputation: 2121
So, I made a database in SQL Server Express 2014. After that, from Visual Studio 2015 Community, I make a new project, and then I add new data source, and then choosing Database, and then Dataset, and then choosing all tables and views in the database.
The problem is, after I made some changes to the database from the SQL Server (either changing a column name, or column data type, or manually adding some data for testing), the changes are not pushed back to my project in Visual Studio, it also says error table name from the renamed Column Name.
Any idea how to automatically set the changes made in SQL Server to the Visual Studio side?
Upvotes: 0
Views: 3186
Reputation: 30453
DataSets in .NET do not automatically sync their schemas with SQL, so changes made in SQL will not be reflected in Visual Studio. To see the changes in Visual Studio you need to:
That's obviously a nuisance to do, so you could use Entity Framework to automate this process.
Entity Framework allows you to work in a few different ways:
This is the official site for Entity Framework.
Upvotes: 1