註冊DbContext. 開啟Startup.cs,在ConfigureServices() 中用AddDbContext() 註冊DbContext ... Add(new Blog { Url = "http://blogs.msdn.com/adonet" });
確定! 回上一頁