How can I update a cell value in a dB table, using SQL Server CE and C# (Visual Studio 2010)

前端 未结 2 920
情书的邮戳
情书的邮戳 2020-11-29 14:27

I\'m writing a small application for college, a video rental application. I have no problems reading from the database, but I cannot update the data in the tables.

2条回答
  •  清酒与你
    2020-11-29 14:41

    A fellow student pointed this out to me:

    "From what I understand, the database that your code updates, unless you hard coded the path to the database is the file in your /bin/debug/ folder. The file you view in Visual studio is the one in your project root."

    I updated the connection to point to the database in the bin folder.

提交回复
热议问题