Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

17
  • Are you connecting to the right database? Make sure dc.Database.Connection.ConnectionString is what you're expecting. Commented Apr 22, 2013 at 20:25
  • yes, it's working with the right connection string :) Commented Apr 22, 2013 at 20:28
  • I have couple posts on that (and a migration initializer etc.) - but you need to post your initializer - that's the main thing. Otherwise that works w/o problems (other problems, not this one) Commented Apr 22, 2013 at 22:50
  • @NSGaga sorry, but i don't understand your comment. is not enough my test code?. This is the place where currently I am working, just a unit test (since i don't have any user interface application yet). may be you mean my dataContext and myconfiguration class? Commented Apr 22, 2013 at 23:31
  • sorry my bad :) I misread the 'initializer' line. Ok - if you already ran Add-Migration nothing will happen if you try to do it from the code - is that what you're doing? To actually test it - you'd need to clean the Db first, then run migration / initializer from code. Other than that, the test should run ok. Commented Apr 22, 2013 at 23:50