Make EF use local database in App_Data folder

后端 未结 1 2001
梦毁少年i
梦毁少年i 2020-12-15 12:35

I am using POCO approach on all my projects using Entity Framework. It\'s all good but I have one problem: It is creating database on my SQL Express, instead I want it to st

1条回答
  •  不知归路
    2020-12-15 12:55

    Set an appropriate connection string in Web.config that makes use of the AttachDBFilename keyword.

    
      
    
    

    0 讨论(0)
提交回复
热议问题