你好,
详细的错误信息是什么?
另外, 你可以在Dbcontext 中使用链接字符串,看看能不能运行。
public class MyContext : DbContext
{
public MyContext(String connection) : base(connection) {}
....
}
Best regards,
Cole Wu
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.