LoginSignup
4

More than 5 years have passed since last update.

Entity Framework Code First で最低限知っておかないといけない規則

Last updated at Posted at 2016-01-19
  • DBの名前は、「名前空間.コンテキスト名」
  • DBの接続名は、「コンテキスト名」
  • クラス(単数形)は、同名のテーブル(複数形)にマッピング
  • プロパティは、同名のテーブル列にマッピング
  • 主キーはId、または クラス名 + Id という名前
  • ナビゲーションプロパティは、同名(単数形)のエンティティにマッピング

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
4