内容へ移動
猫型iPS細胞研究所
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
現在位置:
INDEX
»
dotnet
»
entityframeworkcoreをインストールする
トレース:
dotnet:entityframeworkcoreをインストールする
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
[[https://docs.microsoft.com/ja-jp/aspnet/core/tutorials/first-web-api?view=aspnetcore-6.0&tabs=visual-studio-code|Tutorial: Create a web API with ASP.NET Core]] とりあえず開発用証明書を信頼する。 <code> dotnet dev-certs https --trust </code> 基本は下記コードを順番に実行すればよい。 <code> dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design dotnet add package Microsoft.EntityFrameworkCore.Design dotnet add package Microsoft.EntityFrameworkCore.SqlServer dotnet tool install -g dotnet-aspnet-codegenerator dotnet-aspnet-codegenerator controller -name TodoItemsController -async -api -m TodoItem -dc TodoContext -outDir Controllers </code> <html>dotnet tool install -g dotnet-aspnet-codegenerator</html>ででるメッセージ通りに入力しないと使えないので注意 <code> # dotnet tool install -g dotnet-aspnet-codegenerator Tools directory '/root/.dotnet/tools' is not currently on the PATH environment variable. If you are using bash, you can add it to your profile by running the following command: cat << \EOF >> ~/.bash_profile # Add .NET Core SDK tools export PATH="$PATH:/root/.dotnet/tools" EOF You can add it to the current session by running the following command: export PATH="$PATH:/root/.dotnet/tools" You can invoke the tool using the following command: dotnet-aspnet-codegenerator Tool 'dotnet-aspnet-codegenerator' (version '6.0.8') was successfully installed. // ↓ cat...を入力 # cat << \EOF >> ~/.bash_profile # Add .NET Core SDK tools export PATH="$PATH:/root/.dotnet/tools" EOF // ↓ export...を入力 # export PATH="$PATH:/root/.dotnet/tools" </code>
dotnet/entityframeworkcoreをインストールする.txt
· 最終更新: 2022/09/06 20:35 by
ips
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ