<?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: Summer of NHibernate Session 08: Techniques for Effective Database-Driven Modeling is now available</title>
	<atom:link href="http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/feed/" rel="self" type="application/rss+xml" />
	<link>http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/</link>
	<description>Miscellaneous musings on life, .NET development, and related things that don't really matter</description>
	<pubDate>Thu, 17 May 2012 21:13:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: sbohlen</title>
		<link>http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/comment-page-2/#comment-42655</link>
		<dc:creator>sbohlen</dc:creator>
		<pubDate>Sat, 11 Sep 2010 12:24:30 +0000</pubDate>
		<guid isPermaLink="false">http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/#comment-42655</guid>
		<description>@Nirjhor:

The template itself knows nothing about the type of database to which its connected.  The template merely takes the database meta-data reported by MyGeneration and uses it to create outputs (.cs and .xml files) based on that meta-data.

If you're having troubles using it with ORA11g then I would say that's more a question for the MyGeneration forum.  Sorry I cannot be more helpful~!

Good luck,

-Steve B.</description>
		<content:encoded><![CDATA[<p>@Nirjhor:</p>
<p>The template itself knows nothing about the type of database to which its connected.  The template merely takes the database meta-data reported by MyGeneration and uses it to create outputs (.cs and .xml files) based on that meta-data.</p>
<p>If you&#8217;re having troubles using it with ORA11g then I would say that&#8217;s more a question for the MyGeneration forum.  Sorry I cannot be more helpful~!</p>
<p>Good luck,</p>
<p>-Steve B.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nirjhor</title>
		<link>http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/comment-page-2/#comment-42587</link>
		<dc:creator>Nirjhor</dc:creator>
		<pubDate>Fri, 10 Sep 2010 22:11:06 +0000</pubDate>
		<guid isPermaLink="false">http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/#comment-42587</guid>
		<description>Can I use your template with oracle 11g? Actually I have tried  and ended up with empty option tabs.</description>
		<content:encoded><![CDATA[<p>Can I use your template with oracle 11g? Actually I have tried  and ended up with empty option tabs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MArk B.</title>
		<link>http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/comment-page-2/#comment-32064</link>
		<dc:creator>MArk B.</dc:creator>
		<pubDate>Tue, 18 May 2010 00:06:21 +0000</pubDate>
		<guid isPermaLink="false">http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/#comment-32064</guid>
		<description>Eventually figured out that the issue was that the database and a couple of database objects (tables) had periods "." in the names.</description>
		<content:encoded><![CDATA[<p>Eventually figured out that the issue was that the database and a couple of database objects (tables) had periods &#8220;.&#8221; in the names.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MArk B.</title>
		<link>http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/comment-page-2/#comment-31694</link>
		<dc:creator>MArk B.</dc:creator>
		<pubDate>Wed, 12 May 2010 21:37:51 +0000</pubDate>
		<guid isPermaLink="false">http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/#comment-31694</guid>
		<description>I'm having problems with MyGeneration too but a much different issue.  When I Execute the template the form opens and there is only the Options tab shows. Neither the Tables or Views tabs show up like they do in the web cast.  I get sucessful Test Connections. (Most of the time) 
If I go ahead and Generate I get a couple of folders and the project file.

Any suggestions?

MArk B.</description>
		<content:encoded><![CDATA[<p>I&#8217;m having problems with MyGeneration too but a much different issue.  When I Execute the template the form opens and there is only the Options tab shows. Neither the Tables or Views tabs show up like they do in the web cast.  I get sucessful Test Connections. (Most of the time)<br />
If I go ahead and Generate I get a couple of folders and the project file.</p>
<p>Any suggestions?</p>
<p>MArk B.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andy</title>
		<link>http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/comment-page-2/#comment-17293</link>
		<dc:creator>andy</dc:creator>
		<pubDate>Fri, 19 Jun 2009 16:01:10 +0000</pubDate>
		<guid isPermaLink="false">http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/#comment-17293</guid>
		<description>Hi Friends,

 I have a problem with MyGeneration templates.I was using this since 2 weeks but suddenly it giving me following error when I am executing.

Executing: DNN Controller C#
 ERROR: [Zeus.ErrorHandling.ZeusRuntimeException] - Template Runtime Exception
- Canceled Template execution: DNN Controller C#

Thanks in advance...</description>
		<content:encoded><![CDATA[<p>Hi Friends,</p>
<p> I have a problem with MyGeneration templates.I was using this since 2 weeks but suddenly it giving me following error when I am executing.</p>
<p>Executing: DNN Controller C#<br />
 ERROR: [Zeus.ErrorHandling.ZeusRuntimeException] - Template Runtime Exception<br />
- Canceled Template execution: DNN Controller C#</p>
<p>Thanks in advance&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Unhandled Exceptions Blog Archive Summer of NHibernate Session &#124; fix my credit</title>
		<link>http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/comment-page-2/#comment-17154</link>
		<dc:creator>Unhandled Exceptions Blog Archive Summer of NHibernate Session &#124; fix my credit</dc:creator>
		<pubDate>Wed, 17 Jun 2009 02:10:43 +0000</pubDate>
		<guid isPermaLink="false">http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/#comment-17154</guid>
		<description>[...] Unhandled Exceptions Blog Archive Summer of NHibernate Session   Posted by root 1 hour 4 minutes ago (http://unhandled-exceptions.com)        I 39 ve been trying out the microdesk mygeneration template using the adventureworks database the code that gets generated with the same        Discuss&#160;  &#124;&#160; Bury &#124;&#160;    News &#124; Unhandled Exceptions Blog Archive Summer of NHibernate Session [...]</description>
		<content:encoded><![CDATA[<p>[...] Unhandled Exceptions Blog Archive Summer of NHibernate Session   Posted by root 1 hour 4 minutes ago (http://unhandled-exceptions.com)        I 39 ve been trying out the microdesk mygeneration template using the adventureworks database the code that gets generated with the same        Discuss&nbsp;  |&nbsp; Bury |&nbsp;    News | Unhandled Exceptions Blog Archive Summer of NHibernate Session [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sbohlen</title>
		<link>http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/comment-page-1/#comment-16760</link>
		<dc:creator>sbohlen</dc:creator>
		<pubDate>Mon, 08 Jun 2009 20:30:26 +0000</pubDate>
		<guid isPermaLink="false">http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/#comment-16760</guid>
		<description>@Richard Egginton:

I'm glad you were able to find value in the screencast series; thanks for the feedback!

We don't really use the template-driven code-gen-the-DTO approach much any more so I have to confess to not having kept the templates up-to-date as NHibernate has moved forward into other capabilities and made minor changes that may invalidate the MyGeneration template(s) that were demonstrated in the screencasts.

That said, I know that a lot of the viewers of the screencasts DID continue to use the template-based code-gen approach and to my knowledge the change you mention that declares ALL of the public surface area of the class as 'virtual' is the only change that was required to adapt the template for NH 2.x.  Given this, I frankly think you're safe in proceeding to use that approach with your application.

For some background on how my views on template-driven code-gen have changed, see this post...

http://unhandled-exceptions.com/blog/index.php/2008/10/04/the-four-stages-of-object-relational-mapping-a-progression/

All that said, if you are practicing DB-first development (either because you have a legacy database to support or because that's the level of complexity appropriate for your solution), the template-based DTO-gen approach has worked just fine for me on many applications in the past with great success so I wouldn't worry about proceeding in that direction if its a good fit for your project.

Best of luck~!

-Steve B.</description>
		<content:encoded><![CDATA[<p>@Richard Egginton:</p>
<p>I&#8217;m glad you were able to find value in the screencast series; thanks for the feedback!</p>
<p>We don&#8217;t really use the template-driven code-gen-the-DTO approach much any more so I have to confess to not having kept the templates up-to-date as NHibernate has moved forward into other capabilities and made minor changes that may invalidate the MyGeneration template(s) that were demonstrated in the screencasts.</p>
<p>That said, I know that a lot of the viewers of the screencasts DID continue to use the template-based code-gen approach and to my knowledge the change you mention that declares ALL of the public surface area of the class as &#8216;virtual&#8217; is the only change that was required to adapt the template for NH 2.x.  Given this, I frankly think you&#8217;re safe in proceeding to use that approach with your application.</p>
<p>For some background on how my views on template-driven code-gen have changed, see this post&#8230;</p>
<p><a href="http://unhandled-exceptions.com/blog/index.php/2008/10/04/the-four-stages-of-object-relational-mapping-a-progression/" rel="nofollow">http://unhandled-exceptions.com/blog/index.php/2008/10/04/the-four-stages-of-object-relational-mapping-a-progression/</a></p>
<p>All that said, if you are practicing DB-first development (either because you have a legacy database to support or because that&#8217;s the level of complexity appropriate for your solution), the template-based DTO-gen approach has worked just fine for me on many applications in the past with great success so I wouldn&#8217;t worry about proceeding in that direction if its a good fit for your project.</p>
<p>Best of luck~!</p>
<p>-Steve B.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Egginton</title>
		<link>http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/comment-page-1/#comment-16746</link>
		<dc:creator>Richard Egginton</dc:creator>
		<pubDate>Mon, 08 Jun 2009 12:55:19 +0000</pubDate>
		<guid isPermaLink="false">http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/#comment-16746</guid>
		<description>Hi Steve

My company is just starting out with NHibernate and I'd like to thank you for your screencast series, which I have found invaluable in getting up to speed.

I just wanted to ask about the MyGeneration template you included in the source code.

My company has decided to go with the latest version of NHibernate, which left as is does not work with the MyGen template provided.  Primarily my problems were with the IsDeleted, IsChanges and Clone methods not being virtual.  This was easy enough to fix by editing the template.

My concern is that I'll further along in the development cycle and discover more problems which are not so easy to fix.

I was wondering whether you had an updated version of the template that is NH 2 compatible, or if you knew of one out there?

Richard</description>
		<content:encoded><![CDATA[<p>Hi Steve</p>
<p>My company is just starting out with NHibernate and I&#8217;d like to thank you for your screencast series, which I have found invaluable in getting up to speed.</p>
<p>I just wanted to ask about the MyGeneration template you included in the source code.</p>
<p>My company has decided to go with the latest version of NHibernate, which left as is does not work with the MyGen template provided.  Primarily my problems were with the IsDeleted, IsChanges and Clone methods not being virtual.  This was easy enough to fix by editing the template.</p>
<p>My concern is that I&#8217;ll further along in the development cycle and discover more problems which are not so easy to fix.</p>
<p>I was wondering whether you had an updated version of the template that is NH 2 compatible, or if you knew of one out there?</p>
<p>Richard</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sbohlen</title>
		<link>http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/comment-page-1/#comment-13909</link>
		<dc:creator>sbohlen</dc:creator>
		<pubDate>Fri, 24 Apr 2009 18:22:35 +0000</pubDate>
		<guid isPermaLink="false">http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/#comment-13909</guid>
		<description>@Dave:

Without the DB or more details its hard to know for certain, but my several ideas go like this:

* SQL Server 2008 introduced (finally!) correct support for schemas in SQL Server; its entirely likely that the MyGeneration template doesn't take that into consideration since they were built for SQL 2005 where schema support was more...lets' say "inconsistent"

* ensure all your tables are in the same schema and see if that helps

* try to revert your DB to SQL server 2005 and see if that helps

Failing any of that, if you want to send me a SQL script from which I can construct your DB along with the MyGeneration template you are using, I'd be glad to put it on my list of things to look into when I get a moment to breath (no promises when that will be).

HTH,

-Steve B.</description>
		<content:encoded><![CDATA[<p>@Dave:</p>
<p>Without the DB or more details its hard to know for certain, but my several ideas go like this:</p>
<p>* SQL Server 2008 introduced (finally!) correct support for schemas in SQL Server; its entirely likely that the MyGeneration template doesn&#8217;t take that into consideration since they were built for SQL 2005 where schema support was more&#8230;lets&#8217; say &#8220;inconsistent&#8221;</p>
<p>* ensure all your tables are in the same schema and see if that helps</p>
<p>* try to revert your DB to SQL server 2005 and see if that helps</p>
<p>Failing any of that, if you want to send me a SQL script from which I can construct your DB along with the MyGeneration template you are using, I&#8217;d be glad to put it on my list of things to look into when I get a moment to breath (no promises when that will be).</p>
<p>HTH,</p>
<p>-Steve B.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/comment-page-1/#comment-13861</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 23 Apr 2009 22:14:53 +0000</pubDate>
		<guid isPermaLink="false">http://unhandled-exceptions.com/blog/index.php/2008/08/10/summer-of-nhibernate-session-08-techniques-for-effective-database-driven-modeling-is-now-available/#comment-13861</guid>
		<description>Steve,

Just found this blog.  Great resource, but I'm having a little trouble adapting this lesson to my own needs.  I have a ManyToMany relational table in my database (SQL Server 2008) but MyGeneration doesn't seem to be picking it up as such.  If I exclude it from the mapping manually, Visual Studio chokes on the build because the two Classes (tables) that are joined through that foreign table are expecting there to be a namespace for it.

The foreign table has only two columns, each are set as foreign keys from their respective sources.  The proper foreign key relationships are defined in the DB.  Not sure what else I'm missing.  Any insight would be appreciated.

Thanks.</description>
		<content:encoded><![CDATA[<p>Steve,</p>
<p>Just found this blog.  Great resource, but I&#8217;m having a little trouble adapting this lesson to my own needs.  I have a ManyToMany relational table in my database (SQL Server 2008) but MyGeneration doesn&#8217;t seem to be picking it up as such.  If I exclude it from the mapping manually, Visual Studio chokes on the build because the two Classes (tables) that are joined through that foreign table are expecting there to be a namespace for it.</p>
<p>The foreign table has only two columns, each are set as foreign keys from their respective sources.  The proper foreign key relationships are defined in the DB.  Not sure what else I&#8217;m missing.  Any insight would be appreciated.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

