<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Making names of entities (or any identifiers) in Entity Framework model &quot;code and developer friendly&quot; (= not uppercase)</title>
	<atom:link href="http://blog.cincura.net/228749-making-names-of-entities-or-any-identifiers-in-entity-framework-model-code-and-developer-friendly-not-uppercase/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cincura.net/228749-making-names-of-entities-or-any-identifiers-in-entity-framework-model-code-and-developer-friendly-not-uppercase/</link>
	<description>Taking something that can&#039;t be done, and then doing it.</description>
	<lastBuildDate>Sat, 31 Jul 2010 19:29:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: murat</title>
		<link>http://blog.cincura.net/228749-making-names-of-entities-or-any-identifiers-in-entity-framework-model-code-and-developer-friendly-not-uppercase/#comment-2681</link>
		<dc:creator>murat</dc:creator>
		<pubDate>Wed, 28 Apr 2010 10:41:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cincura.net/228749-making-names-of-entities-or-any-identifiers-in-entity-framework-model-code-and-developer-friendly-not-uppercase/#comment-2681</guid>
		<description>nice work, 
i continued this work and added to csdl and msl parts, to provide column names, navigation names to be camel case:

       #region CSDL
        foreach (var entitySet in csdl.Element(XName.Get(&quot;EntityContainer&quot;, CSDLNamespace)).Elements(XName.Get(&quot;EntitySet&quot;, CSDLNamespace)))
	    {
	        entitySet.Attribute(&quot;Name&quot;).Value = transformation(entitySet.Attribute(&quot;Name&quot;).Value);
	        entitySet.Attribute(&quot;EntityType&quot;).Value = transformation(entitySet.Attribute(&quot;EntityType&quot;).Value);
	    }
	    foreach (var associationSet in csdl.Element(XName.Get(&quot;EntityContainer&quot;, CSDLNamespace)).Elements(XName.Get(&quot;AssociationSet&quot;, CSDLNamespace)))
	    {
	        foreach (var end in associationSet.Elements(XName.Get(&quot;End&quot;, CSDLNamespace)))
	        {
	            end.Attribute(&quot;EntitySet&quot;).Value = transformation(end.Attribute(&quot;EntitySet&quot;).Value);
	        }
	    }
	 
	    foreach (var entityType in csdl.Elements(XName.Get(&quot;EntityType&quot;, CSDLNamespace)))
	    {
	        entityType.Attribute(&quot;Name&quot;).Value = transformation(entityType.Attribute(&quot;Name&quot;).Value);
            
            foreach (var key in entityType.Elements(XName.Get(&quot;Key&quot;, CSDLNamespace)))
            {
                foreach (var propertyRef in key.Elements(XName.Get(&quot;PropertyRef&quot;, CSDLNamespace)))
                {
                    propertyRef.Attribute(&quot;Name&quot;).Value = transformation(propertyRef.Attribute(&quot;Name&quot;).Value);
                }
            }
            
            foreach (var property in entityType.Elements(XName.Get(&quot;Property&quot;, CSDLNamespace)))
            {
                    property.Attribute(&quot;Name&quot;).Value = transformation(property.Attribute(&quot;Name&quot;).Value);             
            }

            foreach (var navigationProperty in entityType.Elements(XName.Get(&quot;NavigationProperty&quot;, CSDLNamespace)))
            {
                navigationProperty.Attribute(&quot;Name&quot;).Value = transformation(navigationProperty.Attribute(&quot;Name&quot;).Value);             
            }
            
	    }
	    foreach (var association in csdl.Elements(XName.Get(&quot;Association&quot;, CSDLNamespace)))
	    {
	        foreach (var end in association.Elements(XName.Get(&quot;End&quot;, CSDLNamespace)))
	        {
	            end.Attribute(&quot;Type&quot;).Value = transformation(end.Attribute(&quot;Type&quot;).Value);
	        }
	    }
	    #endregion
	 
	    #region MSL
        
	    foreach (var entitySetMapping in msl.Element(XName.Get(&quot;EntityContainerMapping&quot;, MSLNamespace)).Elements(XName.Get(&quot;EntitySetMapping&quot;, MSLNamespace)))
	    {
            entitySetMapping.Attribute(&quot;Name&quot;).Value = transformation(entitySetMapping.Attribute(&quot;Name&quot;).Value);

	        foreach (var entityTypeMapping in entitySetMapping.Elements(XName.Get(&quot;EntityTypeMapping&quot;, MSLNamespace)))
	        {
	            entityTypeMapping.Attribute(&quot;TypeName&quot;).Value = transformation(entityTypeMapping.Attribute(&quot;TypeName&quot;).Value);                
                foreach 
                    (var scalarProperty in
                        (entityTypeMapping.Element(XName.Get(&quot;MappingFragment&quot;, MSLNamespace))).Elements(XName.Get(&quot;ScalarProperty&quot;, MSLNamespace))
                    )
                {
                    scalarProperty.Attribute(&quot;Name&quot;).Value = transformation(scalarProperty.Attribute(&quot;Name&quot;).Value); 
                }
                
            }
	    }
        foreach (var associationSetMapping in msl.Element(XName.Get(&quot;EntityContainerMapping&quot;, MSLNamespace)).Elements(XName.Get(&quot;AssociationSetMapping&quot;, MSLNamespace)))
        {
            foreach(var endProperty in associationSetMapping.Elements(XName.Get(&quot;EndProperty&quot;,MSLNamespace)))
            {               
                foreach (var scalarProperty in endProperty.Elements(XName.Get(&quot;ScalarProperty&quot;, MSLNamespace)))
                {
                    scalarProperty.Attribute(&quot;Name&quot;).Value = transformation(scalarProperty.Attribute(&quot;Name&quot;).Value);
                }
            }
        }
	    #endregion</description>
		<content:encoded><![CDATA[<p>nice work,<br />
i continued this work and added to csdl and msl parts, to provide column names, navigation names to be camel case:</p>
<p>       #region CSDL<br />
        foreach (var entitySet in csdl.Element(XName.Get(&#8220;EntityContainer&#8221;, CSDLNamespace)).Elements(XName.Get(&#8220;EntitySet&#8221;, CSDLNamespace)))<br />
	    {<br />
	        entitySet.Attribute(&#8220;Name&#8221;).Value = transformation(entitySet.Attribute(&#8220;Name&#8221;).Value);<br />
	        entitySet.Attribute(&#8220;EntityType&#8221;).Value = transformation(entitySet.Attribute(&#8220;EntityType&#8221;).Value);<br />
	    }<br />
	    foreach (var associationSet in csdl.Element(XName.Get(&#8220;EntityContainer&#8221;, CSDLNamespace)).Elements(XName.Get(&#8220;AssociationSet&#8221;, CSDLNamespace)))<br />
	    {<br />
	        foreach (var end in associationSet.Elements(XName.Get(&#8220;End&#8221;, CSDLNamespace)))<br />
	        {<br />
	            end.Attribute(&#8220;EntitySet&#8221;).Value = transformation(end.Attribute(&#8220;EntitySet&#8221;).Value);<br />
	        }<br />
	    }</p>
<p>	    foreach (var entityType in csdl.Elements(XName.Get(&#8220;EntityType&#8221;, CSDLNamespace)))<br />
	    {<br />
	        entityType.Attribute(&#8220;Name&#8221;).Value = transformation(entityType.Attribute(&#8220;Name&#8221;).Value);</p>
<p>            foreach (var key in entityType.Elements(XName.Get(&#8220;Key&#8221;, CSDLNamespace)))<br />
            {<br />
                foreach (var propertyRef in key.Elements(XName.Get(&#8220;PropertyRef&#8221;, CSDLNamespace)))<br />
                {<br />
                    propertyRef.Attribute(&#8220;Name&#8221;).Value = transformation(propertyRef.Attribute(&#8220;Name&#8221;).Value);<br />
                }<br />
            }</p>
<p>            foreach (var property in entityType.Elements(XName.Get(&#8220;Property&#8221;, CSDLNamespace)))<br />
            {<br />
                    property.Attribute(&#8220;Name&#8221;).Value = transformation(property.Attribute(&#8220;Name&#8221;).Value);<br />
            }</p>
<p>            foreach (var navigationProperty in entityType.Elements(XName.Get(&#8220;NavigationProperty&#8221;, CSDLNamespace)))<br />
            {<br />
                navigationProperty.Attribute(&#8220;Name&#8221;).Value = transformation(navigationProperty.Attribute(&#8220;Name&#8221;).Value);<br />
            }</p>
<p>	    }<br />
	    foreach (var association in csdl.Elements(XName.Get(&#8220;Association&#8221;, CSDLNamespace)))<br />
	    {<br />
	        foreach (var end in association.Elements(XName.Get(&#8220;End&#8221;, CSDLNamespace)))<br />
	        {<br />
	            end.Attribute(&#8220;Type&#8221;).Value = transformation(end.Attribute(&#8220;Type&#8221;).Value);<br />
	        }<br />
	    }<br />
	    #endregion</p>
<p>	    #region MSL</p>
<p>	    foreach (var entitySetMapping in msl.Element(XName.Get(&#8220;EntityContainerMapping&#8221;, MSLNamespace)).Elements(XName.Get(&#8220;EntitySetMapping&#8221;, MSLNamespace)))<br />
	    {<br />
            entitySetMapping.Attribute(&#8220;Name&#8221;).Value = transformation(entitySetMapping.Attribute(&#8220;Name&#8221;).Value);</p>
<p>	        foreach (var entityTypeMapping in entitySetMapping.Elements(XName.Get(&#8220;EntityTypeMapping&#8221;, MSLNamespace)))<br />
	        {<br />
	            entityTypeMapping.Attribute(&#8220;TypeName&#8221;).Value = transformation(entityTypeMapping.Attribute(&#8220;TypeName&#8221;).Value);<br />
                foreach<br />
                    (var scalarProperty in<br />
                        (entityTypeMapping.Element(XName.Get(&#8220;MappingFragment&#8221;, MSLNamespace))).Elements(XName.Get(&#8220;ScalarProperty&#8221;, MSLNamespace))<br />
                    )<br />
                {<br />
                    scalarProperty.Attribute(&#8220;Name&#8221;).Value = transformation(scalarProperty.Attribute(&#8220;Name&#8221;).Value);<br />
                }</p>
<p>            }<br />
	    }<br />
        foreach (var associationSetMapping in msl.Element(XName.Get(&#8220;EntityContainerMapping&#8221;, MSLNamespace)).Elements(XName.Get(&#8220;AssociationSetMapping&#8221;, MSLNamespace)))<br />
        {<br />
            foreach(var endProperty in associationSetMapping.Elements(XName.Get(&#8220;EndProperty&#8221;,MSLNamespace)))<br />
            {<br />
                foreach (var scalarProperty in endProperty.Elements(XName.Get(&#8220;ScalarProperty&#8221;, MSLNamespace)))<br />
                {<br />
                    scalarProperty.Attribute(&#8220;Name&#8221;).Value = transformation(scalarProperty.Attribute(&#8220;Name&#8221;).Value);<br />
                }<br />
            }<br />
        }<br />
	    #endregion</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: testtest</title>
		<link>http://blog.cincura.net/228749-making-names-of-entities-or-any-identifiers-in-entity-framework-model-code-and-developer-friendly-not-uppercase/#comment-1448</link>
		<dc:creator>testtest</dc:creator>
		<pubDate>Thu, 21 May 2009 12:41:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cincura.net/228749-making-names-of-entities-or-any-identifiers-in-entity-framework-model-code-and-developer-friendly-not-uppercase/#comment-1448</guid>
		<description>test</description>
		<content:encoded><![CDATA[<p>test</p>
]]></content:encoded>
	</item>
</channel>
</rss>
