<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: UML Modeling and Code Generation in Visual Studio 2010</title>
	<link>http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/</link>
	<description>Absolutes never work</description>
	<pubDate>Fri, 10 Sep 2010 14:27:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: CodeEase.com &#187; Blog Archive &#187; Using Visual Studio 2010 to build UML model and genarate code</title>
		<link>http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/#comment-3234</link>
		<dc:creator>CodeEase.com &#187; Blog Archive &#187; Using Visual Studio 2010 to build UML model and genarate code</dc:creator>
		<pubDate>Tue, 07 Sep 2010 21:33:09 +0000</pubDate>
		<guid>http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/#comment-3234</guid>
		<description>[...] a good article to help you. (Oleg Sych: UML Modeling and Code Generation in Visual Studio 2010)    Tags: UML Category: .NET &#160;&#124;&#160;&#160;Comment (RSS) [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] a good article to help you. (Oleg Sych: UML Modeling and Code Generation in Visual Studio 2010)    Tags: UML Category: .NET &nbsp;|&nbsp;&nbsp;Comment (RSS) [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oleg Sych</title>
		<link>http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/#comment-3173</link>
		<dc:creator>Oleg Sych</dc:creator>
		<pubDate>Wed, 30 Jun 2010 11:21:57 +0000</pubDate>
		<guid>http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/#comment-3173</guid>
		<description>Roy,

I suspect that reverse-engineering functionality simply does not support custom attributes at this time and to make it happen someone would need to submit a change request on Microsoft &lt;a href="http://connect.microsoft.com" rel="nofollow"&gt;Connect&lt;/a&gt; portal.

Oleg</description>
		<content:encoded><![CDATA[<p>Roy,</p>
<p>I suspect that reverse-engineering functionality simply does not support custom attributes at this time and to make it happen someone would need to submit a change request on Microsoft <a href="http://connect.microsoft.com" rel="nofollow">Connect</a> portal.</p>
<p>Oleg</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: R. Lawson</title>
		<link>http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/#comment-3172</link>
		<dc:creator>R. Lawson</dc:creator>
		<pubDate>Tue, 29 Jun 2010 15:59:04 +0000</pubDate>
		<guid>http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/#comment-3172</guid>
		<description>Hi Oleg,

I am using a class diagram that is reversed engineered for code generation.  I created a custom attribute where I want to set various properties that I will use during code gen.

I can manually add attributes to my class diagram, but when I reverse engineer the class diagram, the attribute decorations in my class are not being added to the diagram.  Do you know how to make that happen?</description>
		<content:encoded><![CDATA[<p>Hi Oleg,</p>
<p>I am using a class diagram that is reversed engineered for code generation.  I created a custom attribute where I want to set various properties that I will use during code gen.</p>
<p>I can manually add attributes to my class diagram, but when I reverse engineer the class diagram, the attribute decorations in my class are not being added to the diagram.  Do you know how to make that happen?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ключевые ресурсы по архитектурным инструментам Visual Studio 2010 - Архитектурные Заметки Сергея Орлика - Home - MSDN Blogs</title>
		<link>http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/#comment-3109</link>
		<dc:creator>Ключевые ресурсы по архитектурным инструментам Visual Studio 2010 - Архитектурные Заметки Сергея Орлика - Home - MSDN Blogs</dc:creator>
		<pubDate>Tue, 25 May 2010 08:04:34 +0000</pubDate>
		<guid>http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/#comment-3109</guid>
		<description>[...] обратите внимание на пост гуру T4 - Олега Сыча: UML Modeling and Code Generation in Visual Studio 2010 и блог Тима Фишера (Tim [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] обратите внимание на пост гуру T4 - Олега Сыча: UML Modeling and Code Generation in Visual Studio 2010 и блог Тима Фишера (Tim [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gustavo</title>
		<link>http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/#comment-3108</link>
		<dc:creator>Gustavo</dc:creator>
		<pubDate>Mon, 24 May 2010 21:43:46 +0000</pubDate>
		<guid>http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/#comment-3108</guid>
		<description>Excellent post, you have inspired me to write my own template. I have pulled togheter a very simple t4 template for generating classes, interfaces and enums based on a modeling project in case anyone needs it: http://thegsharp.wordpress.com/2010/05/24/vs2010-modeling-project-%E2%80%93-generating-classes-from-uml-%E2%80%93-t4-template

Cheers!</description>
		<content:encoded><![CDATA[<p>Excellent post, you have inspired me to write my own template. I have pulled togheter a very simple t4 template for generating classes, interfaces and enums based on a modeling project in case anyone needs it: <a href="http://thegsharp.wordpress.com/2010/05/24/vs2010-modeling-project-%E2%80%93-generating-classes-from-uml-%E2%80%93-t4-template" rel="nofollow">http://thegsharp.wordpress.com/2010/05/24/vs2010-modeling-project-%E2%80%93-generating-classes-from-uml-%E2%80%93-t4-template</a></p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 3 Ideas to Make Architecture Executable in Visual Studio 2010 &#171; Josette Rigsby</title>
		<link>http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/#comment-3088</link>
		<dc:creator>3 Ideas to Make Architecture Executable in Visual Studio 2010 &#171; Josette Rigsby</dc:creator>
		<pubDate>Wed, 19 May 2010 04:44:10 +0000</pubDate>
		<guid>http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/#comment-3088</guid>
		<description>[...] http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/ [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] <a href="http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/" rel="nofollow">http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/</a> [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VS2010 Modeling Project – Generating classes from UML &#171; G# blog</title>
		<link>http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/#comment-3071</link>
		<dc:creator>VS2010 Modeling Project – Generating classes from UML &#171; G# blog</dc:creator>
		<pubDate>Thu, 13 May 2010 14:53:30 +0000</pubDate>
		<guid>http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/#comment-3071</guid>
		<description>[...] a good explanation on UML profiles, and code generation, you can check out this post. Now let’s go to the code. First, you will need to import the following [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] a good explanation on UML profiles, and code generation, you can check out this post. Now let’s go to the code. First, you will need to import the following [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Немного про UML в VS2010 &#171; Дмитрий Нестерук &#8211; Статьи</title>
		<link>http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/#comment-2989</link>
		<dc:creator>Немного про UML в VS2010 &#171; Дмитрий Нестерук &#8211; Статьи</dc:creator>
		<pubDate>Tue, 13 Apr 2010 15:25:10 +0000</pubDate>
		<guid>http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/#comment-2989</guid>
		<description>[...] T4, как всегда. Если интересно, можете почитать тут. В принципе, все не так сложно, но было бы круто если бы [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] T4, как всегда. Если интересно, можете почитать тут. В принципе, все не так сложно, но было бы круто если бы [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neuerungen in Visual Studio 2010 &#124; Biggle&#39;s Blog</title>
		<link>http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/#comment-2922</link>
		<dc:creator>Neuerungen in Visual Studio 2010 &#124; Biggle&#39;s Blog</dc:creator>
		<pubDate>Fri, 12 Mar 2010 09:48:19 +0000</pubDate>
		<guid>http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/#comment-2922</guid>
		<description>[...] Quelle: http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/ [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Quelle: <a href="http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/" rel="nofollow">http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/</a> [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cristi</title>
		<link>http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/#comment-2917</link>
		<dc:creator>Cristi</dc:creator>
		<pubDate>Tue, 02 Mar 2010 00:47:02 +0000</pubDate>
		<guid>http://www.olegsych.com/2010/01/uml-modeling-and-code-generation-in-visual-studio-2010/#comment-2917</guid>
		<description>Is there a way to get a IStereotype reference from a t4 template?
I tried something like this, but the ApplicableStereotypes enumereation is empty.
void WriteClassAttributes( IClass classItem )
{
	foreach( IStereotypeInstance stereoInst in classItem.AppliedStereotypes )
	{
		this.WriteLine( string.Format( "{0} = {1}", stereoInst.Profile, stereoInst.Name ) );
	}
	foreach( IStereotype stereo in classItem.ApplicableStereotypes )
	{
		this.WriteLine( string.Format( "{0} = {1}", stereo.Profile.Name, stereo.Name ) );
	}
}

I tried to get IStereotype from ModelStore. But ProfileManager property  is always null.

string GetDefaultValue( IStereotypePropertyInstance stereoProp )
{
	IModelStore modelStore = stereoProp.GetModelStore();
	Microsoft.VisualStudio.Uml.Profiles.IProfile profile =
		modelStore.ProfileManager.GetProfileByName( profileName );

	foreach( Microsoft.VisualStudio.Uml.Profiles.IStereotype stereo in profile.Stereotypes )
	{
		if( stereo.Name == stereoProp.StereotypeInstance.Name  )
		{
			return stereo.DefaultValue;
		}
	}
}

I'm stucked. Please help!</description>
		<content:encoded><![CDATA[<p>Is there a way to get a IStereotype reference from a t4 template?<br />
I tried something like this, but the ApplicableStereotypes enumereation is empty.<br />
void WriteClassAttributes( IClass classItem )<br />
{<br />
	foreach( IStereotypeInstance stereoInst in classItem.AppliedStereotypes )<br />
	{<br />
		this.WriteLine( string.Format( &#8220;{0} = {1}&#8221;, stereoInst.Profile, stereoInst.Name ) );<br />
	}<br />
	foreach( IStereotype stereo in classItem.ApplicableStereotypes )<br />
	{<br />
		this.WriteLine( string.Format( &#8220;{0} = {1}&#8221;, stereo.Profile.Name, stereo.Name ) );<br />
	}<br />
}</p>
<p>I tried to get IStereotype from ModelStore. But ProfileManager property  is always null.</p>
<p>string GetDefaultValue( IStereotypePropertyInstance stereoProp )<br />
{<br />
	IModelStore modelStore = stereoProp.GetModelStore();<br />
	Microsoft.VisualStudio.Uml.Profiles.IProfile profile =<br />
		modelStore.ProfileManager.GetProfileByName( profileName );</p>
<p>	foreach( Microsoft.VisualStudio.Uml.Profiles.IStereotype stereo in profile.Stereotypes )<br />
	{<br />
		if( stereo.Name == stereoProp.StereotypeInstance.Name  )<br />
		{<br />
			return stereo.DefaultValue;<br />
		}<br />
	}<br />
}</p>
<p>I&#8217;m stucked. Please help!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
