LoginSignup
0
0

More than 5 years have passed since last update.

続EntityFrameworkCore 1.1.2でScaffold

Last updated at Posted at 2017-08-08

概要

  • 前回の記事でコマンドを使えるようになった
  • どうやってDatabase Firstするの?(既存のデータベースからModelクラス作成)

解決策

  • dotnet ef dbcontext scaffold "[接続文字列]" "[プロバイダ]" -o "[アウトプットフォルダ]"
    • dotnet ef dbcontext scaffold "Data Source=サーバー名;Initial Catalog=データベース名;Integrated Security=True" "Microsoft.EntityFrameworkCore.SqlServer" -o "Models"

まとめ

  • プロバイダの指定を忘れないようにしよう
  • みんなもQiitaに.NET Coreとかの備忘録を上げよう
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0