开发者

Embedding SQL Server CE database into a C# application

开发者 https://www.devze.com 2023-03-31 00:45 出处:网络
I\'m developing a program which uses SQL Server Compact Edition for processing data. We all know that this creates a .sdf file in output (SQL Server CE database File).

I'm developing a program which uses SQL Server Compact Edition for processing data. We all know that this creates a .sdf file in output (SQL Server CE database File).

My question is if there is anyway to embed this .sdf file into the executable?

T开发者_JAVA技巧hanks in advance.


You could add the .sdf file to a Resources File .resx and then when your application starts you can just copy it out of your Resources and create it, if it doesn't already exist.

0

精彩评论

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

关注公众号