나는이 오류 encountring 해요 : 나는이 코드를 실행하려고하면오류 모델
가 :
db = new MyModelContainer();
var _projets = from d in db.Projets
select d;
string toto = string.Empty;
foreach (var projet in _projets)
{
toto += projet.Adresse;
}
를이 내의 app.config입니다 파일 :
<connectionStrings>
<add ... ;Data Source=|DataDirectory|\Database\db.sdf; />
</connectionStrings>
Database/
i라는 폴더에 데이터베이스를 만들었습니다. n 앱의 루트 폴더.
bin/Debug/Database/db.sdf
나는 그것이 다른 폴더를 가리 수 있도록하여 ConnectionString을 변화 sould 무엇
로 데이터베이스를 이동해야? 내가 다른 환경에 프로젝트를 이동할 때
하세요 Oui ............... – user1166147