Deploying Database with windows application  
Author Message
SiChiu





PostPosted: Visual C# Express Edition, Deploying Database with windows application Top

I'm currently writing a windows app that accesses a database mdf file and I wish to deploy this with the file when I complete it. However when updates are made to the application I wish users to continue using the existing database that was deployed with the original as they will be adding their own data to it. Is there a simple way to do this

I'd also like to know why I can't generate a detailsview for my datagridview. I recall doing this on a course a few months back but don't remember the details. I take it's because I'm using C# Express Edition and it's not available in this release.


Visual Studio Express Editions8  
 
 
shakalama





PostPosted: Visual C# Express Edition, Deploying Database with windows application Top

hi,

you have 2 databases one that you created inside the IDE, and other one for testing( a copy from the origional one) . if you want to deploy the testing database with your project in case you have add some usefull records during testing . then go to your project folder\bin\debug you will find the testing database copy it , then go up to your project folder and replace the origional with the testing one, in your solution explorer select your database and go to properties , in the build action select what you want , as embedded rescource or content,

to check b4 deploy you can right click your project in solution explorer, select properties , publish tab, application files button, you will see all the files that will be deploied with your application

i guess the detailsview is for webpages you will find that in the VWD express, you can ask about it in http://forums.asp.net

hope this helps