error 26 sql express using entity framework

1

Hi, I'm starting to study c # and I'm using visual studio community 2013 and sql express. Employment entity framework. I use the model first concept to generate the classes and the database. I have several questions to see if you can help me:

1- Many times I get error 26 when connecting to the database. and searching the web is resolved by starting the service again. This removes the error but deletes all the data I had inserted in bd. I wanted to know why this error appears, how it is definitively solved and how data loss is avoided.

2- Another thing that happens is that if I modify the model from a visual studio, the data of the bd is also deleted. This has a solution with this model first philosophy? or is it necessary to implement the code first concept (which I am not familiar with)?

    
asked by Patricio Rey Baccaro 26.01.2018 в 02:34
source

0 answers