<?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: Pluggable Conventions</title><link>http://blogs.msdn.com/b/adonet/archive/2011/01/10/ef-feature-ctp5-pluggable-conventions.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. The pluggable conventions feature was removed from the EF4.1 release. You can track this feature at http://entityframework</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: Pluggable Conventions</title><link>http://blogs.msdn.com/b/adonet/archive/2011/01/10/ef-feature-ctp5-pluggable-conventions.aspx#10264715</link><pubDate>Tue, 07 Feb 2012 02:37:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10264715</guid><dc:creator>Shimmy Weitzhandler</dc:creator><description>&lt;p&gt;Agree with Doug Clutter.&lt;/p&gt;
&lt;p&gt;This feature is very compelling, and since it&amp;#39;s not released with the RTW, this post should include a big red announcement on top of it that the info here wasn&amp;#39;t release.&lt;/p&gt;
&lt;p&gt;Very disapointing indeed, worked for half an hour making zillions of attributes now nothing works. I hate the fluent API. I like attributes. Clean code.&lt;/p&gt;
&lt;p&gt;Here is an awsome workaround meanwhile: &lt;a rel="nofollow" target="_new" href="http://dotnetspeak.com/index.php/2011/03/custom-conventions-in-entity-framework-code-first-v-4-1/"&gt;dotnetspeak.com/.../custom-conventions-in-entity-framework-code-first-v-4-1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please vote here: &lt;a rel="nofollow" target="_new" href="http://data.uservoice.com/forums/72025-ado-net-entity-framework-ef-feature-suggestions/suggestions/1155529-ability-to-plug-in-custom-conventions-for-schema-g"&gt;data.uservoice.com/.../1155529-ability-to-plug-in-custom-conventions-for-schema-g&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10264715" width="1" height="1"&gt;</description></item><item><title>re: EF Feature CTP5: Pluggable Conventions</title><link>http://blogs.msdn.com/b/adonet/archive/2011/01/10/ef-feature-ctp5-pluggable-conventions.aspx#10155655</link><pubDate>Tue, 19 Apr 2011 11:11:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10155655</guid><dc:creator>Doug Clutter</dc:creator><description>&lt;p&gt;I&amp;#39;m having trouble creating a custom convention using v4.1 RTM. &amp;nbsp;It appears that IConfigurationConvention is internal...and DbModelBuilder.Conventions does not have a public Add method.&lt;/p&gt;
&lt;p&gt;If this functionality was removed from the RTM...would you please put a Big Darn Notice at the top of the article so peeps don&amp;#39;t waste their time on this.&lt;/p&gt;
&lt;p&gt;BTW, I am very bummed conventions were removed. &amp;nbsp;They appeared to be the perfect answer to an issue I was struggling with. &amp;nbsp;Hopefully, there will be a v4.2 that puts them back in. &amp;nbsp;:)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10155655" width="1" height="1"&gt;</description></item><item><title>re: EF Feature CTP5: Pluggable Conventions</title><link>http://blogs.msdn.com/b/adonet/archive/2011/01/10/ef-feature-ctp5-pluggable-conventions.aspx#10131956</link><pubDate>Sun, 20 Feb 2011 21:26:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10131956</guid><dc:creator>Alan Cummings</dc:creator><description>&lt;p&gt;This is great stuff - I love the ability to have simple POCO classes easily persistable. However, my preference is to have Entity Set names in the DB to be Singular... No problem you think, just remove the PluralizingTableNameConvention! But it doesn&amp;#39;t work (when you set it to create the database) - it still creates pluralized Entity Set names.&lt;/p&gt;
&lt;p&gt;I have managed to get around it by adding a convention:&lt;/p&gt;
&lt;p&gt;	public class SingularEntitySetNameConvention : IConfigurationConvention&amp;lt;Type, EntityTypeConfiguration&amp;gt; {&lt;/p&gt;
&lt;p&gt;		public void Apply(Type memberInfo, Func&amp;lt;EntityTypeConfiguration&amp;gt; configuration) {&lt;/p&gt;
&lt;p&gt;			configuration().ToTable(memberInfo.Name);&lt;/p&gt;
&lt;p&gt;		}&lt;/p&gt;
&lt;p&gt;	}&lt;/p&gt;
&lt;p&gt;... and adding it in in the OnModelCreating override; but the PluralizingTableNameConvention will hopefully fixed for RTM.&lt;/p&gt;
&lt;p&gt;Cheers, and keep up the good work &amp;nbsp;:-D&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10131956" width="1" height="1"&gt;</description></item><item><title>re: EF Feature CTP5: Pluggable Conventions</title><link>http://blogs.msdn.com/b/adonet/archive/2011/01/10/ef-feature-ctp5-pluggable-conventions.aspx#10121120</link><pubDate>Thu, 27 Jan 2011 17:35:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10121120</guid><dc:creator>Dirk Schomacker</dc:creator><description>&lt;p&gt;Hi folks,&lt;/p&gt;
&lt;p&gt;great work, but the mapping to a legacy foreignkey drives me totally crazy.&lt;/p&gt;
&lt;p&gt;I tried nearly everything with annotations and removing default conventions but it doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;(I need annotations, cause I generate the Code with a t4 template)&lt;/p&gt;
&lt;p&gt;Do you have a working example for me? (I tried &amp;quot;association&amp;quot; ,&amp;quot;foreignKey&amp;quot; and &amp;quot;column&amp;quot; annotations)&lt;/p&gt;
&lt;p&gt;I simply want to map a foreign key to a custom fieldname in the database. This must be easy...i hope..&lt;/p&gt;
&lt;p&gt;Thanks a lot, Dirk&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10121120" width="1" height="1"&gt;</description></item><item><title>re: EF Feature CTP5: Pluggable Conventions</title><link>http://blogs.msdn.com/b/adonet/archive/2011/01/10/ef-feature-ctp5-pluggable-conventions.aspx#10117440</link><pubDate>Wed, 19 Jan 2011 04:55:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10117440</guid><dc:creator>shawn</dc:creator><description>&lt;p&gt;It would be nice to see an example mapping a naming convention like ProductID = product_id, BrandName = brand_name, etc...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10117440" width="1" height="1"&gt;</description></item><item><title>re: EF Feature CTP5: Pluggable Conventions</title><link>http://blogs.msdn.com/b/adonet/archive/2011/01/10/ef-feature-ctp5-pluggable-conventions.aspx#10116477</link><pubDate>Mon, 17 Jan 2011 09:06:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10116477</guid><dc:creator>Anuj Pandey</dc:creator><description>&lt;p&gt;I am using IgnoreAllTypesInNamespace as following and yet I see below error while reading employee from context. Any Suggestions ?&lt;/p&gt;
&lt;p&gt;modelBuilder.Conventions.Add(new IgnoreAllTypesInNamespace((&amp;quot;e10.Objects&amp;quot;)));&lt;/p&gt;
&lt;p&gt;The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type &amp;#39;Employee&amp;#39;. Previously found CLR type &amp;#39;e10.Data.Employee&amp;#39;, newly found CLR type &amp;#39;e10.Objects.Employee&amp;#39;.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10116477" width="1" height="1"&gt;</description></item><item><title>re: EF Feature CTP5: Pluggable Conventions</title><link>http://blogs.msdn.com/b/adonet/archive/2011/01/10/ef-feature-ctp5-pluggable-conventions.aspx#10115872</link><pubDate>Fri, 14 Jan 2011 16:21:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10115872</guid><dc:creator>Kris Vandermotten</dc:creator><description>&lt;p&gt;Will this (or any other feature in this CTP) allow us to use managed types in the database, such as the spatial types included in SQL Server (or managed types we develop ourselves)?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10115872" width="1" height="1"&gt;</description></item><item><title>re: EF Feature CTP5: Pluggable Conventions</title><link>http://blogs.msdn.com/b/adonet/archive/2011/01/10/ef-feature-ctp5-pluggable-conventions.aspx#10114163</link><pubDate>Tue, 11 Jan 2011 14:00:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10114163</guid><dc:creator>Matthew Hail</dc:creator><description>&lt;p&gt;The Entity method on ModelConfiguration is marked internal, making it impossible to map any simple entity types, while the complex method is public. Is this intentional? I need to call this method to be able to implement a schema tracking table similar to the IncludeMetadataConvention.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10114163" width="1" height="1"&gt;</description></item><item><title>re: EF Feature CTP5: Pluggable Conventions</title><link>http://blogs.msdn.com/b/adonet/archive/2011/01/10/ef-feature-ctp5-pluggable-conventions.aspx#10114125</link><pubDate>Tue, 11 Jan 2011 12:11:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10114125</guid><dc:creator>José Roberto Araújo</dc:creator><description>&lt;p&gt;Hi Rowan,&lt;/p&gt;
&lt;p&gt; I&amp;#39;ve been using the EF4 CTP5 and I could see that he has no way to update the database schema. I do not want it to delete the database, but update in accordance with the upgrades in my Model.&lt;/p&gt;
&lt;p&gt;It´s possible in EF4 CTP5 version ???&lt;/p&gt;
&lt;p&gt;Thank´s&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10114125" width="1" height="1"&gt;</description></item><item><title>re: EF Feature CTP5: Pluggable Conventions</title><link>http://blogs.msdn.com/b/adonet/archive/2011/01/10/ef-feature-ctp5-pluggable-conventions.aspx#10114081</link><pubDate>Tue, 11 Jan 2011 09:01:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10114081</guid><dc:creator>Remco Blok</dc:creator><description>&lt;p&gt;Hi Rowan,&lt;/p&gt;
&lt;p&gt;I hope that for RTM the RIA Services team will be able to read information about the shape of your model so that it can automatically decorate properties with the Key and Association attributes required by RIA Services by implementing a DomainServiceDescriptionProvider. It would otherwise seem silly having to manually add these attributes for the sake of RIA Services when EF Code First can derive these configurations by convention. Mathew Charles mentioned in this thread here &lt;a rel="nofollow" target="_new" href="http://social.msdn.microsoft.com/Forums/en-US/adonetefx/thread/57793bec-abc6-4520-ac1d-a63e40239aed/"&gt;social.msdn.microsoft.com/.../57793bec-abc6-4520-ac1d-a63e40239aed&lt;/a&gt; that we can expect this in the future. However, after reading about the limitations in your post above about the RTM not allowing you to read information about the shape of your model, I wonder if the RIA Services team will be able to provide this with the RTM of EF Code First. Or can we read information about the model from ((IObjectContextAdapter)DbContext).DataContext.MetadataWorkspace? Can you tell me what we can expect for RTM regarding first class RIA Services support?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Remco&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10114081" width="1" height="1"&gt;</description></item></channel></rss>