If I create a solution in C #, how to add a database to the final program?

Sorry if this is a very simple question, but I'm ready to create an executable for a Visual Studio C # application. (My first time!)

My application uses the database that I am currently storing on SQL Server. This works fine while I'm coding, since I created the database manually on my computer.

I see that VS2008 created .exe in my bin / debug folder, but how can I guarantee that new users (who do not already have a database) performing a new installation will also receive the database?

+3
source share
6 answers

SQL Express MDF script, db .

, , , SQLite, db. , SQLite, ADO.NET, LINQ .NET, .

+2

( ), System.Data.SQLite . .NET SQLite - , . .

+1

, . , , , , , , , .. , , , , .

, , , ..

, , .

0

If you need advanced database procedures, SQL Server Express is what you want to implement, as suggested by another poster. If you just use it as your primary data store, it might be easier for you to use SQLite instead, which is only linked to a single .DLL in your assembly.

0
source

I recommend FirebirdSQL Embedded Server. High performance, many features comparable to MSSQL Express Edition. And these are just a few dlls in the application folder.

0
source

Source: https://habr.com/ru/post/1740235/


All Articles