<?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>EF Feature CTP5 Released!</title><link>http://blogs.msdn.com/b/adonet/archive/2010/12/06/ef-feature-ctp5-released.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. &amp;#160; The latest Entity Framework Feature Community Technology Preview (CTP5) is now available for download . This</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: EF Feature CTP5 Released!</title><link>http://blogs.msdn.com/b/adonet/archive/2010/12/06/ef-feature-ctp5-released.aspx#10135922</link><pubDate>Wed, 02 Mar 2011 10:37:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10135922</guid><dc:creator>Lionel</dc:creator><description>&lt;p&gt;Hi guys,&lt;/p&gt;
&lt;p&gt;I have a question regarding type conversion.&lt;/p&gt;
&lt;p&gt;Assuming I have a column of type &amp;quot;int&amp;quot; on the DB side and I want to have the corresponding property as &amp;nbsp;a &amp;quot;string&amp;quot; on the entity side. How can I do that using CodeFirst?&lt;/p&gt;
&lt;p&gt;I have tried the following statement into my EntityTypeConfiguration class:&lt;/p&gt;
&lt;p&gt;Property(st =&amp;gt; st.Id).HasColumnType(&amp;quot;int&amp;quot;); &amp;nbsp; // st.Id is a &amp;quot;string&amp;quot;&lt;/p&gt;
&lt;p&gt;But I get the following error:&lt;/p&gt;
&lt;p&gt;System.Data.MetadataException : Schema specified is not valid. Errors: &lt;/p&gt;
&lt;p&gt;(7,6) : error 0063: MaxLength facet isn&amp;#39;t allowed for properties of type date.&lt;/p&gt;
&lt;p&gt;How can I achieve my scenario? Is it possible?&lt;/p&gt;
&lt;p&gt;Thx&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10135922" width="1" height="1"&gt;</description></item><item><title>re: EF Feature CTP5 Released!</title><link>http://blogs.msdn.com/b/adonet/archive/2010/12/06/ef-feature-ctp5-released.aspx#10131193</link><pubDate>Fri, 18 Feb 2011 00:44:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10131193</guid><dc:creator>Jack</dc:creator><description>&lt;p&gt;Is there a way to disable alphabetical sorting of columns yet?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10131193" width="1" height="1"&gt;</description></item><item><title>re: EF Feature CTP5 Released!</title><link>http://blogs.msdn.com/b/adonet/archive/2010/12/06/ef-feature-ctp5-released.aspx#10130275</link><pubDate>Wed, 16 Feb 2011 12:34:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10130275</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;Help me please create context class for this model:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; public abstract class Publication&lt;/p&gt;
&lt;p&gt; &amp;nbsp; {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; public int Id { get; set; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; public ICollection&amp;lt;CoAuthor&amp;gt; CoAuthors { get; set; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; public class JournalArticle : Publication&lt;/p&gt;
&lt;p&gt; &amp;nbsp; {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; public int Id { get; set; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; public string ArticleName { get; set; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; public class CoAuthor&lt;/p&gt;
&lt;p&gt; &amp;nbsp; {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; public int Id { get; set; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; public int EmployeeId { get; set; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; }&lt;/p&gt;
&lt;p&gt;I have:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; public class ModelContext : DbContext&lt;/p&gt;
&lt;p&gt; &amp;nbsp; {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; public DbSet&amp;lt;Publication&amp;gt; Publications { get; set; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; public DbSet&amp;lt;CoAuthor&amp;gt; CoAuthors { get; set; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; protected override void OnModelCreating(ModelBuilder builder)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; builder.Entity&amp;lt;JournalArticle&amp;gt;().Map(m =&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; m.MapInheritedProperties();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; m.ToTable(&amp;quot;JournalArticle&amp;quot;, &amp;quot;Science&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; builder.Entity&amp;lt;CoAuthor&amp;gt;().ToTable(&amp;quot;CoAuthor&amp;quot;, &amp;quot;Science&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; }&lt;/p&gt;
&lt;p&gt;But I give error &amp;quot;Schema specified is not valid. Errors: (35,6) : error 0040: Type Publication is not defined in namespace CodeFirstDatabaseSchema (Alias=Self). (64,8) : error 0100: The referenced EntitySet Publication for End Publication could not be found in the containing EntityContainer.&amp;quot;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10130275" width="1" height="1"&gt;</description></item><item><title>re: EF Feature CTP5 Released!</title><link>http://blogs.msdn.com/b/adonet/archive/2010/12/06/ef-feature-ctp5-released.aspx#10128343</link><pubDate>Fri, 11 Feb 2011 23:54:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10128343</guid><dc:creator>Darius</dc:creator><description>&lt;p&gt;This is all fantastic. &amp;nbsp;Been using it for a little while. &amp;nbsp;My only feature request is better support for the occasional raw SQL and SP that is needed. &amp;nbsp; Also, I&amp;#39;ve seen some of the SQL that gets generated and it&amp;#39;s not very pretty. &amp;nbsp;I&amp;#39;m assuming those are some of the things among others that will be fixed in the final version. &amp;nbsp;Speaking of, when is it going to be out???? &amp;nbsp;Sooner the better!!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10128343" width="1" height="1"&gt;</description></item><item><title>re: EF Feature CTP5 Released!</title><link>http://blogs.msdn.com/b/adonet/archive/2010/12/06/ef-feature-ctp5-released.aspx#10125223</link><pubDate>Sat, 05 Feb 2011 11:43:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10125223</guid><dc:creator>Brett Styles</dc:creator><description>&lt;p&gt;There is a major issue with deployment on hosted environment that only allow Medium Trust, the EF produces security exceptions.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10125223" width="1" height="1"&gt;</description></item><item><title>re: EF Feature CTP5 Released!</title><link>http://blogs.msdn.com/b/adonet/archive/2010/12/06/ef-feature-ctp5-released.aspx#10120861</link><pubDate>Thu, 27 Jan 2011 07:17:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10120861</guid><dc:creator>Arjen</dc:creator><description>&lt;p&gt;I struggle with unit testing and drop&amp;amp;recreation of the database. During execution of my unit tests I always receive the exception : &amp;quot;The model backing the &amp;#39;bla bla&amp;#39; context has changed since the database was created&amp;quot;. Even when I add a connectionstring in app.Config, this exception occurs. I wat to prevent using IDatabaseInitializer in code, since this will end-up in production. &lt;/p&gt;
&lt;p&gt;So, bottom line, where should you call an instance of IDatabaseInitializer? In unit testing code or production code? As well, it looks like that CTP5 does not detect the appConfig connectionstring setting (and yes, the name of the setting equals to the classname of the DbContext class)&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10120861" width="1" height="1"&gt;</description></item><item><title>re: EF Feature CTP5 Released!</title><link>http://blogs.msdn.com/b/adonet/archive/2010/12/06/ef-feature-ctp5-released.aspx#10119205</link><pubDate>Sun, 23 Jan 2011 22:13:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10119205</guid><dc:creator>Yazid</dc:creator><description>&lt;p&gt;Excellent stuff, a small question. Let us assume I have data that comes from a service and I would like to use EF CTP4 or CTP5 and I have no database and I do not want a database. Can I pass my data to the wrapper. I mean&lt;/p&gt;
&lt;p&gt;public class EF4ApplicationPOCOContext : ObjectContext&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; public EF4ApplicationPOCOContext(IServiceLocataor serviceLocator) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ContextOptions.LazyLoadingEnabled = true;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ObjectSet&amp;lt;User&amp;gt; obj = new ObjectSet&amp;lt;User&amp;gt;();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; obj.AddObject(serviceLocator.GetUser());&lt;/p&gt;
&lt;p&gt;// I do the above for all my dataModel &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;private ObjectSet&amp;lt;User&amp;gt; _users;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public ObjectSet&amp;lt;User&amp;gt; Users&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;get&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return _users;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10119205" width="1" height="1"&gt;</description></item><item><title>re: EF Feature CTP5 Released!</title><link>http://blogs.msdn.com/b/adonet/archive/2010/12/06/ef-feature-ctp5-released.aspx#10116972</link><pubDate>Tue, 18 Jan 2011 09:34:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10116972</guid><dc:creator>Norman Mackay</dc:creator><description>&lt;p&gt;Asked the stored proc caching question on 4 different forums but got no response.&lt;/p&gt;
&lt;p&gt;Helped us make up out mind it&amp;#39;s not the ORM of choice as you can&amp;#39;t get a simple yes or no to features. How are you supposed to plan for future products if you have no idea on the development path is beyond me.&lt;/p&gt;
&lt;p&gt;One thing I will say is ignoring stored procs is a mistake, companies aren&amp;#39;t going to drop them and re-write them in code for the sake of a new data access layer., the costs of dev alone is prohibitive.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10116972" width="1" height="1"&gt;</description></item><item><title>re: EF Feature CTP5 Released!</title><link>http://blogs.msdn.com/b/adonet/archive/2010/12/06/ef-feature-ctp5-released.aspx#10115702</link><pubDate>Fri, 14 Jan 2011 09:45:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10115702</guid><dc:creator>Andreas Brglez-Hummer</dc:creator><description>&lt;p&gt;Hi Ado.Net Team&lt;/p&gt;
&lt;p&gt;Will there be support for other Databases like Firebird in the near future? I tried to get a code only demo running. After many different not working approaches I have tried to pass a FbConnection (descendant of DbConnection) to my derived DbContext class and ended up with the exception &amp;quot;Unable to determine the provider name for connection of type &amp;#39;FirebirdSql.Data.FirebirdClient.FbConnection&amp;#39;.&amp;quot;.&lt;/p&gt;
&lt;p&gt;Is there any way to pass the provider name information to DbContext?&lt;/p&gt;
&lt;p&gt;Or are there missing things in the FirebirdClient? I am using Version 2.6 of the FirebirdClient which should support EF 4 but maybe not all the new features of CTP 5?&lt;/p&gt;
&lt;p&gt;Best regrads,&lt;/p&gt;
&lt;p&gt;Andy&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10115702" width="1" height="1"&gt;</description></item><item><title>re: EF Feature CTP5 Released!</title><link>http://blogs.msdn.com/b/adonet/archive/2010/12/06/ef-feature-ctp5-released.aspx#10112603</link><pubDate>Thu, 06 Jan 2011 18:55:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10112603</guid><dc:creator>Greg</dc:creator><description>&lt;p&gt;Just realized that the new DBContext doesn&amp;#39;t support Compiled Queries... This has to make the final release. &amp;nbsp;This is the simplest way to squeeze out decent performance from EF and you took it away! &amp;nbsp;What is the status of this?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10112603" width="1" height="1"&gt;</description></item></channel></rss>