Forum member

ChuckBryan

3 posts

Posts by ChuckBryan

  1. Integration Testing with EF Code First and Migrations

    Just a follow up...I think I got this worked out. What was causing me to stumble was figuring out where I needed to change my Connection String for my EF Db Context. Ultimately, I did this in my Db Context Constructor. I did take your advice and used the Process Id as the Name. During Tear Down, I l…

  2. Integration Testing with EF Code First and Migrations

    Remco - Thanks for the reply, you giving me more stuff to go back and check. The issue that I was getting was that the localdb was being created in the bin directory of one of the shadow folders. Are the "numbered" names in the folders the Process Id or something? Whenever a new numbered folder woul…

  3. Integration Testing with EF Code First and Migrations

    I have been able to get NCrunching on integration test, but, after a few runs, I get errors about the database not being found and I need to delete the localdb using SQL Object Explorer. I believe I need to set the name of my MDF or Database (or both) to either a GUID or a ProcessId, but, I am not r…