<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>masatsuna</author_name>
  <author_url>https://blog.hatena.ne.jp/masatsuna/</author_url>
  <blog_title>ツナ缶雑記</blog_title>
  <blog_url>https://tsuna-can.hateblo.jp/</blog_url>
  <categories>
    <anon>Entity Framework</anon>
    <anon>.NET Framework</anon>
    <anon>Visual Studio</anon>
  </categories>
  <description>やりたいこと Entity Frameworkのデータベースファーストを使用する場合、モデルクラスの各プロパティの型は、データベースの型によって勝手に決められます。「XXステータス」のように、取りうる値が決まっているケースでは、.NETアプリケーション内でできればEnumを使用したいところです。しかし、単純にモデルクラスを生成しただけでは、Enumを使うようにしてくれません。今回はEnumを使うように設定する方法を解説します。 やりたいこと 環境 対象のテーブル とりあえずモデルクラスを生成する Enumを使えるようにする 新たに列挙型を作成する場合 既存の列挙型を使用する場合 何が嬉しいのか…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftsuna-can.hateblo.jp%2Fentry%2F2019%2F07%2F02%2F121825&quot; title=&quot;Entity Framework 6 DBファーストで数値型のカラムをEnumとして取り扱う方法 - ツナ缶雑記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/m/masatsuna/20190728/20190728013512.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-07-02 12:18:25</published>
  <title>Entity Framework 6 DBファーストで数値型のカラムをEnumとして取り扱う方法</title>
  <type>rich</type>
  <url>https://tsuna-can.hateblo.jp/entry/2019/07/02/121825</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
