Deploy WindowsForms with .mdf database

1

I made a program in Windows Forms (C #) in layers.

  • Model
  • DAO
  • BLL
  • Interface

Create in the Model Project a Bank (Generator.mdf) and its Context (edmx).

Now I want to publish, and how do I get the .mdf file to come with publish?

asked by anonymous 11.08.2015 / 04:52

1 answer

1

In the Generator.mdf file properties, select "Copy to Output Directory" or "Copy always" to always copy the file to the output directory or "Copy if newer" to copy only if the latest the existing directory in the output directory.

    
11.08.2015 / 15:00