EF Core 遷移過程遇到EF Core tools version版本不相符的解決方案
如果你使用命令:
PM> add-migration Inital
提示如下資訊時:
The EF Core tools version '2.1.1-rtm-30846' is older than that of the runtime '2.1.4-rtm-31024'
解決方法大致一下幾種:
第一
最近在跟著官方的文件學習 .NET Core 。 在寫 “建立 Razor 頁面 Web 應用” Demo 中的——“新增模型”這一篇的教程,“新增初始遷移”中遇到 “The EF Core tools version '2.1.1-rtm-30846' is older than that of the runtime '2.1.3-rtm-32065'. Update the tools for the latest features and bug fixes.”這樣的問題。 這個問題是用 PMC 命令做“初始遷移”的時候出現的,找了很多方法都不行,也看了本機安裝的 .NET Core 的版本(dotnet --version,dotnet --info)。 最後解決辦法: 專案資料夾下使用 .NET Core CLI 命令: dotnet ef migrations add Initial dotnet ef database update 完成後執行可以了
相關推薦
EF Core 遷移過程遇到EF Core tools version版本不相符的解決方案
如果你使用命令: PM> add-migration Inital 提示如下資訊時: The EF Core tools version '2.1.1-rtm-30846' is older than that of the runtime '2.1.4-rtm-31024' 解決方法大致一下幾
asp.net core 3.1 引用的元包dll版本相容性問題解決方案
自從.netcore 3.1出來後,大家都想立馬升級到最新版本。我也是如此,微軟也對.netcore 3.1的官方元件不斷升級,幾乎每隔幾天就會有部分元包可以升級。每次開啟Nuget包管理器,“更新”的tab處總會有個數字暗示著你快點升級!一向有程式碼潔癖的同學(包括我),都會毫不猶豫
.Net Core與Vue.js模組化前後端分離快速開發解決方案(NetModular)
NetModular是什麼? NetModular不僅僅是一個框架,它也是一整套的模組化與前後端分離的快速開發的解決方案,目標是致力於開箱即用,讓開發人員完全專注於業務開發,不需要關心底層封裝和實現。(距離目標仍任重而道遠~) 專案結構 功能介紹 後端框架 00_Host:不僅可以開發Web應用,同時依
配置BGP 過程中最容易出現的問題。及解決方案!
解決方法 在配置過程中最容易出現的問題! 往往是很簡單、很容易的問題,我們大家常常會忽略, 在配置過程中容易把配置中 peer 192.168.34.4 as-number 64513 配置成65413。 解決方案:在R3或R4中開啟debugging
【關於PyCharm安裝和載入Pyecharts視覺化庫的方法和安裝過程中出現的No Module Named XXX的解決方案】
作者:我是你的眼中花花花郵箱:[email protected] 原始碼安裝 $ git clone https://github.com/pyecharts/pyecharts.git $ cd pyecharts $ pip install -r re
應用從ie9遷移到ie11,css樣式position:relative不可用解決方案
問題描述 問題的現象和解決問題的方式看似毫不相關,請看: 向某個html元素追加子元素,$("#div").append(*****),將實現程式碼從ie9遷移到ie11。 同一頁面的button按
select into 臨時表再使用過程中所遇到的問題和相應的解決方案
使用中發現 select into 臨時表 很麻煩,下面是使用中發現的一些注意事項(一下以mssqlserver為例): 1,一般使用 create table person (id int ,name varchar(20),birthday datetime) 讀取資料
VS2015環境配置Cmake過程報錯—— The C compiler identification is unknown解決方案
錯誤日誌報錯 LINK : fatal error LNK1158: cannot run 'rc.exe'解決方案: 1、把C:\Program Files (x86)\Windows Kits\8.1\bin\x86加入系統變數PATH中。(如果用的是64位編譯器將C:
關於JSP開發過程中的幾種中文亂碼問題的解決方案
②. 對於 GET 請求: 前面的方式對於 GET 無效. 可以通過修改 Tomcat 的 server.xml (需要改對映裡的server.xml和tomcat原始檔下conf下的server.xml)檔案的方式. 可以參照 http://localhost:8989/docs/config/inde
ASP.net Core 2.0 EF (mysql) 遷移 正確姿勢
com update reat .com ttr 數據庫 pda creat mic 用於進行遷移的 Entity Framework Core NuGet 包 註意:必須通過編輯 .csproj 文件來安裝此包;不能使用 install-package 命令或程序包管理器
.Net Core 2.0 使用EF連接MySQL數據庫
stat sql sof ati image tar save ride over MySQL官方mysql ef provider正在preview 階 段 可以選擇下載MySQL官方的,也可以使用第三方的NuGet包來進行安裝 MySQL官方mysql ef provi
EF Core的安裝、EF Core與數據庫結合
output ack tex 執行 lec collect conf out 註冊 一.新建一個.net core的MVC項目 新建好項目後,不能像以前一樣直接在新建項中添加ef,
.net Core 2.1 MVC+EF+Redis搭建
文件 dds cookie exception reg direct mvc+ef microsoft encoding 官方學習資料 搭建空MVC框架 1.創建一個空模板 2.創建文件夾 Controllers、Models、Views 3.在Contro
ASP.NET Core 配置 EF SQLite 支持 - ASP.NET Core 基礎教程 - 簡單教程,簡單編程
microsoft 下載 sqlit 圖片 sqli 可能 ssi htm 技術 原文:ASP.NET Core 配置 EF SQLite 支持 - ASP.NET Core 基礎教程 - 簡單教程,簡單編程 ASP.NET Core 配置 EF SQLite 支持
Asp.net Core 2.1使用 EF Core 簡單增刪改查操作數據庫
generic nuget ini gen 項目 pub sass .net 增刪改查 Asp.net Core 2.1使用 EF Core 簡單增刪改查操作數據庫 大概步驟如下5步: 1、創建項目(Asp.net Core 2.1項目) 2、項目使用EF Core 3、建
.net core執行dotnet ef migrations createmodel、dotnet ef migrations add initial等命令出錯
.net core執行dotnet ef migrations createmodel、dotnet ef migrations add initial等命令出錯 執行dotnet ef migrations createmodel、dotnet ef migrations add initial等命令
實現自己的.NET Core配置Provider之EF
《10分鐘就能學會.NET Core配置》裡詳細介紹了.NET Core配置的用法,另外我還開源了自定義的配置Provider:EF配置Provider和Yaml配置Provider。本文先來聊聊EF配置Provider的實現,其中會涉及到EntityFramework Core的知識,不熟悉也沒關係,且聽我
asp.net core 2.1 Mysql 資料庫遷移,遇坑記錄
首先來一段錯誤immodeMacBook-Pro:tz.efcontext immo$ dotnet ef database update Unable to create an object of type 'AppDbContext'. Add an implementa
ASP.NET Core MVC+Layui使用EF Core連線MySQL執行簡單的CRUD操作
前言: 本章主要通過一個完整的示例講解ASP.NET Core MVC+EF Core對MySQL資料庫進行簡單的CRUD操作,希望能夠為剛入門.NET Core的小夥伴們提供一個完整的參考例項。關於ASP.NET Core MVC+EF操作MsSQL Server詳情請參考官方文件(https://do
EF Core 二 、 入門 EF Core
# 入門EF Core >我們將開始真正的EF之旅了,這裡使用SqlServer資料,然後DbFirst; 為嘛使用SqlServer,目前公司的整體業務全部在SqlSever,所以很多產品業務都是依託於這個,當然也在考慮做資料庫切換,切換EF Core就是開始,為後續做好準備,目前SqlServer