Create sql server compact file in appdata folder

前端 未结 2 1298
夕颜
夕颜 2021-01-04 10:19

I am developing a simple piece of software which uses Entity Framework code first and sql server compact 4. At the moment this setup works. Entity framework creates the sql

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-04 11:05

    Use below:

    AppDomain.CurrentDomain.SetData("DataDirectory", Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData));
    
    
      
    
    

提交回复
热议问题