<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Walkthrough: Enums (June CTP)</title><link>http://blogs.msdn.com/b/adonet/archive/2011/06/30/walkthrough-enums-june-ctp.aspx</link><description>&amp;#160; The information in this post is out of date. Visit msdn.com/data/ef for the latest information on current and past releases of EF. For Enum Support in Code First see http://msdn.com/data/hh859576 For Enum Support in the EF Designer see http://msdn</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Walkthrough: Enums (June CTP)</title><link>http://blogs.msdn.com/b/adonet/archive/2011/06/30/walkthrough-enums-june-ctp.aspx#10299742</link><pubDate>Wed, 02 May 2012 01:51:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10299742</guid><dc:creator>Diego B Vega</dc:creator><description>&lt;p&gt;@Dan M: the features showcased in this CTP, including enums support, have been rolled into EF5. There is a walkthrough on how to use enums in EF5 here: &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/hh859576"&gt;msdn.microsoft.com/.../hh859576&lt;/a&gt;. In fact, when using Code First you should be able to add a property of an enum type and start working with it, but you will need EF5 and .NET 4.5 (currently in beta).&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10299742" width="1" height="1"&gt;</description></item><item><title>re: Walkthrough: Enums (June CTP)</title><link>http://blogs.msdn.com/b/adonet/archive/2011/06/30/walkthrough-enums-june-ctp.aspx#10299741</link><pubDate>Wed, 02 May 2012 01:36:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10299741</guid><dc:creator>Dan M</dc:creator><description>&lt;p&gt;It&amp;#39;s now May 1, and there still doesn&amp;#39;t seem to be a blog post on using enums with Code First. Just putting a public automatic property of type SomeEnum on an entity doesn&amp;#39;t seem to work. No column gets created for that property in the database table. Do I need an attribute or something? If you don&amp;#39;t have time to write a full blog post, could you at least reply with a simple example? Thanks.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10299741" width="1" height="1"&gt;</description></item><item><title>re: Walkthrough: Enums (June CTP)</title><link>http://blogs.msdn.com/b/adonet/archive/2011/06/30/walkthrough-enums-june-ctp.aspx#10265017</link><pubDate>Tue, 07 Feb 2012 17:47:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10265017</guid><dc:creator>Pawel</dc:creator><description>&lt;p&gt;@Stephen: OData currently does not support enums. You will get an exception if you try to use an enum property on your entity&lt;/p&gt;
&lt;p&gt;@Jordan: enums are only &amp;quot;CSpace feature&amp;quot; - it means that in the database you will have just a regular column e.g. of int type whose values are cast to the enum type you use in your C#/VB.NET program during materialization. &lt;/p&gt;
&lt;p&gt;@Jordan, Niels: A new blog post on enums will be published shortly - it should address your concerns&lt;/p&gt;
&lt;p&gt;@dj_kyron: Unfortunately nested types (including enums) are not supported by EF at the moment&lt;/p&gt;
&lt;p&gt;@Shimmy: Unfortunately there are no plans for adding support for enums to EF1 and EF4 however .NET Framwork 4.5 is an &amp;quot;in-place&amp;quot; update so EF4 will be replaced with EF vNext when you move to .NET Framework 4.5 and you will be able to take advantage of new features. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10265017" width="1" height="1"&gt;</description></item><item><title>re: Walkthrough: Enums (June CTP)</title><link>http://blogs.msdn.com/b/adonet/archive/2011/06/30/walkthrough-enums-june-ctp.aspx#10259517</link><pubDate>Mon, 23 Jan 2012 06:28:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10259517</guid><dc:creator>Shimmy Weitzhandler</dc:creator><description>&lt;p&gt;Any workaround for previous versions?&lt;/p&gt;
&lt;p&gt;My situation: Silverlight RIA, I wanna be able to see the enum property only, plus LINQing against it.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10259517" width="1" height="1"&gt;</description></item><item><title>re: Walkthrough: Enums (June CTP)</title><link>http://blogs.msdn.com/b/adonet/archive/2011/06/30/walkthrough-enums-june-ctp.aspx#10204892</link><pubDate>Fri, 02 Sep 2011 04:58:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10204892</guid><dc:creator>dj_kyron</dc:creator><description>&lt;p&gt;Can we use nested enums defined elsewhere in our code?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10204892" width="1" height="1"&gt;</description></item><item><title>re: Walkthrough: Enums (June CTP)</title><link>http://blogs.msdn.com/b/adonet/archive/2011/06/30/walkthrough-enums-june-ctp.aspx#10203464</link><pubDate>Wed, 31 Aug 2011 09:04:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10203464</guid><dc:creator>Niels Peter Gibe</dc:creator><description>&lt;p&gt;&amp;gt; Finally the CTP includes also an updated version of EF 4.1 that supports enums, so you are able to &lt;/p&gt;
&lt;p&gt;&amp;gt;use enums with CodeFirst. &amp;nbsp;We will cover how to use Enums with Code First in an upcoming blog post.&lt;/p&gt;
&lt;p&gt;I am using Code First and really need this feature. &amp;nbsp;Is there any progress relating writing the mentioned post?&lt;/p&gt;
&lt;p&gt;I am looking forward to a post/demo from someone, who can describe how to implement Enums in Code First&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10203464" width="1" height="1"&gt;</description></item><item><title>re: Walkthrough: Enums (June CTP)</title><link>http://blogs.msdn.com/b/adonet/archive/2011/06/30/walkthrough-enums-june-ctp.aspx#10198621</link><pubDate>Mon, 22 Aug 2011 18:07:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10198621</guid><dc:creator>Jordan</dc:creator><description>&lt;p&gt;I am surprised no one at Ado blog has posted a working sample solution with enum support! It would take 10 minutes and really really help users debug.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10198621" width="1" height="1"&gt;</description></item><item><title>re: Walkthrough: Enums (June CTP)</title><link>http://blogs.msdn.com/b/adonet/archive/2011/06/30/walkthrough-enums-june-ctp.aspx#10197931</link><pubDate>Fri, 19 Aug 2011 19:20:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10197931</guid><dc:creator>Acaz</dc:creator><description>&lt;p&gt;@Jordan, i have the same problem too with code-first. :(&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10197931" width="1" height="1"&gt;</description></item><item><title>re: Walkthrough: Enums (June CTP)</title><link>http://blogs.msdn.com/b/adonet/archive/2011/06/30/walkthrough-enums-june-ctp.aspx#10196826</link><pubDate>Wed, 17 Aug 2011 17:13:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10196826</guid><dc:creator>Jordan</dc:creator><description>&lt;p&gt;Can someone post sample code / database using entities that have enums?&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t for the life of me get the enums to show up in the database and I would love to compare my config files, sql connections, included references, etc.. to a working sample project.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10196826" width="1" height="1"&gt;</description></item><item><title>re: Walkthrough: Enums (June CTP)</title><link>http://blogs.msdn.com/b/adonet/archive/2011/06/30/walkthrough-enums-june-ctp.aspx#10195907</link><pubDate>Mon, 15 Aug 2011 22:07:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10195907</guid><dc:creator>Stephen</dc:creator><description>&lt;p&gt;Does OData support the addition of Enums? &amp;nbsp;What happens to my WCF Data Services endpoint if I use enums?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10195907" width="1" height="1"&gt;</description></item></channel></rss>