开发者

CRUD operations on a SQL CE database

开发者 https://www.devze.com 2023-03-23 16:52 出处:网络
I have a SQL CE databse in a .net 4.0 WPF application, and nothing i do will write to the database. I can enter data directly, and view what i have entered in the application.

I have a SQL CE databse in a .net 4.0 WPF application, and nothing i do will write to the database. I can enter data directly, and view what i have entered in the application.

I have tried using a DAL, directly with a SqlCeConnection, using a dataTable, and the suggestions of a hundred tutorials... and nothing throws any errors, yet it does nothing.

Everything i can observe i开发者_JAVA百科n debug mode looks fine...

This is my first WPF application, but i have written several data-heavy asp.net Web Applications and have never had any problems like this.

Any suggestions are appreciated!

-


I think you will find you have two copies of the database - one in a folder in your project, and one in your /bin folder, which is copied there as part of the build process, and it will be the instance in your /bin folder that has the entries made via your application.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号