<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Wilson ORMapper Forums : Templates &amp; More</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=rss&amp;id=4&amp;key=dFybbJ3ZpOZT75aCh8EoqA%3d%3d</link><description>Wilson ORMapper Forums : Templates &amp; More</description><item><title>Welter, Demarzo, Bunting or other?</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2542&amp;key=PkaVH3SHtyjniRsomsRuLw%3d%3d&amp;post=7668</link><pubDate>Thu, 28 Jun 2007 17:06:01 GMT</pubDate><description>&lt;P&gt;I just added an overview of the logging service to teh wiki: &lt;A href="http://www.hosted-projects.com/trac/computersims/wilsonorwrapper/wiki/Logging"&gt;http://www.hosted-projects.com/trac/computersims/wilsonorwrapper/wiki/Logging&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This being an open-source project, please feel free to submit your own example projects, patches, or documentation. ;)&lt;/P&gt;</description></item><item><title>Welter, Demarzo, Bunting or other?</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2542&amp;key=PkaVH3SHtyjniRsomsRuLw%3d%3d&amp;post=7646</link><pubDate>Wed, 27 Jun 2007 20:48:26 GMT</pubDate><description>&lt;P&gt;Thanks for the post Brian.&lt;/P&gt;
&lt;P&gt;I actually just got done building out a sample project using your framework ... very nice!&amp;nbsp; was able to hook it into the ObjectDataSource control quite easily as well .&amp;nbsp; I want to spend a bit more time looking through the source before I use it in any of the asp.net and winform apps I'm working on though it definitely looks promising.&amp;nbsp; I also thought your integration with log4net and caching was pretty sweet.&lt;/P&gt;
&lt;P&gt;Anyways, I noticed you had set up the beginnings of a "how to" section on your project site.&amp;nbsp; Here are a few ideas that would help me at least in my evaluation and use ...:&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; Detailed example of using log4Net with WilsonORWrapper&lt;BR&gt;2.&amp;nbsp; Detailed example of using MemCache and/or ASP.NET caching with WilsonOrWrapper&lt;BR&gt;3.&amp;nbsp; Detailed example of illustrating a fully functional gridview control with an ObjectDataSource control tied into WilsonORWrapper generated objects (ie. demonstrating filtering, paging, sorting, and CRUD operations).&lt;/P&gt;</description></item><item><title>Welter, Demarzo, Bunting or other?</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2542&amp;key=PkaVH3SHtyjniRsomsRuLw%3d%3d&amp;post=7644</link><pubDate>Mon, 04 Jun 2007 19:34:32 GMT</pubDate><description>&lt;P&gt;I've used Bunting's a bit (only in examples, not in real world projects), used Welter's extensively, and used my own (which are derived from Welter's) even more than that.&lt;/P&gt;
&lt;P&gt;I can't comment on Bunting's much because I haven't used them much, but I can at least tell you what to expect differently from my wrapper and Welter's templates.&lt;/P&gt;
&lt;P&gt;Welter's templates are great if you do not want any external assembly references outside of WilsonORMapper. All the code is generated as classes in your project, and he includes some stubs for things like validation and change events. They work great and are battle-tested.&lt;/P&gt;
&lt;P&gt;My templates are not just templates. I took Welter's framework and expanded it to become a "mini-framework". (In fact I just released a major update to it -- &lt;A href="http://www.sidesofmarch.com/index.php/archive/2007/06/01/wilsonorwrapper-better-stronger-maybe-faster/"&gt;check out the details on my blog&lt;/A&gt;.) There are still CodeSmith templates which will generate your entity classes, but the plumbing is all handled by a precompiled assembly (source code is publicly available). Beyond the basic O/R mapper generation and hooks, my code also provides a standard interface to a logging subsystem (event log, NLog, or log4net) and a caching subsystem (ASP.Net cache or memcached). Further, it's extensible so you can quite easily add your own. I've started using the current version of my templates in two projects and so far have not foun any issues, and one others I know of has used it without issue. Hopefully that trend continues. :)&lt;/P&gt;
&lt;P&gt;You should also note that my modified version of Welter's tempaltes are also &lt;A href="http://www.sidesofmarch.com/index.php/projects/codesmith-templates-for-wilsons-or-mapper/"&gt;available on my blog&lt;/A&gt;, which adds some code generation for logging/interceptors and such.&lt;/P&gt;
&lt;P&gt;My suggestion is to create a simple project and try working with all three. My use would depend on my needs. If I only need the basic O/R mapper features, Welter's is a good fit. If I planned on adding at least one more thing to the mix (say, logging support), I'd use my own. But of course, I am biased. :)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- Brian&lt;BR&gt;&amp;nbsp;- &lt;A href="http://www.sidesofmarch.com"&gt;http://www.sidesofmarch.com&lt;/A&gt;&lt;/P&gt;</description></item><item><title>Welter, Demarzo, Bunting or other?</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2542&amp;key=PkaVH3SHtyjniRsomsRuLw%3d%3d&amp;post=7642</link><pubDate>Mon, 04 Jun 2007 18:15:15 GMT</pubDate><description>&lt;P&gt;Just looking for some feedback by all you template authors and users regarding your experience with the codesmith templates linked to on this site and in particular, why you have chosen to go with one over another!&lt;/P&gt;
&lt;P&gt;To get things let me say that I've been using the ORM for over two years and have been very satisfied with Paul Welter's codesmith templates!&amp;nbsp; In particular, the Active-Record model used in his templates has been the best fit for my projects (I rarely see a need to implement a full data mapper pattern, atleast in what I've worked on).&amp;nbsp; Another win for me has been the ease with which I've been able to tie his generated objects into the ObjectDataSource control.&lt;/P&gt;
&lt;P&gt;So how about it?&amp;nbsp; Which template(s) do you like, use most often and why?&amp;nbsp; Personally, I'm open to going another direction ... I'm just not as familiar with the pros/cons of the other templates nor have I seen a need too.&lt;/P&gt;
&lt;P&gt;- wayde&lt;/P&gt;</description></item><item><title>Embedded Resource</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2502&amp;key=bUkGofAnpiciErh7qydjkA%3d%3d&amp;post=7619</link><pubDate>Fri, 11 May 2007 16:15:21 GMT</pubDate><description>&lt;P&gt;Anyway to do this in a base class with the resource being located in a seperate assemby containing a&amp;nbsp;derived class?&lt;/P&gt;
&lt;P&gt;Basically I want to instantiate my ObjectSpace in my base class, so it can be used in all derived classes (in several different projects/assemblies utilizing a different entity map file for each project).&lt;/P&gt;
&lt;P&gt;Can this be done?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Embedded Resource</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2502&amp;key=bUkGofAnpiciErh7qydjkA%3d%3d&amp;post=7542</link><pubDate>Sun, 01 Apr 2007 00:18:12 GMT</pubDate><description>&lt;P&gt;Anyone trying to embed their mappings file or use the Welter templates (now the default CodeSmith 4.0 templates) might find this link&amp;nbsp;useful.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.attilan.com/2006/08/accessing_embedded_resources_u.php"&gt;http://www.attilan.com/2006/08/accessing_embedded_resources_u.php&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;I was never ever able to get this to work right and it was super frustrating:&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;using&lt;/FONT&gt;&lt;FONT size=2&gt; (&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;Stream&lt;/FONT&gt;&lt;FONT size=2&gt; mappingStream = assembly.GetManifestResourceStream(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;typeof&lt;/FONT&gt;&lt;FONT size=2&gt;(&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;DataManager&lt;/FONT&gt;&lt;FONT size=2&gt;), "Mapping.config"))&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;But this worked:&lt;/P&gt;&lt;FONT color=#2b91af size=2&gt;
&lt;P&gt;Stream&lt;/FONT&gt;&lt;FONT size=2&gt; mappingStream = assembly.GetManifestResourceStream(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"MyMiddleTier.MyFolderWhereTheDocumentResides.Mapping.config"&lt;/FONT&gt;&lt;FONT size=2&gt;)) &lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;The link explains it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.attilan.com/2006/08/accessing_embedded_resources_u.php"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Revamping my O/R Mapper CodeSmith templates</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2491&amp;key=WpmWHkGVeea6cVgjQ%2b2j%2bQ%3d%3d&amp;post=7497</link><pubDate>Mon, 12 Mar 2007 22:08:58 GMT</pubDate><description>&lt;P&gt;I've just written a new post on my blog where I outline changes to my CodeSmith templates for WORM. Some of the changes will make the "templates" -- now more a framework plus templates -- accessible to people without CodeSmith.&lt;/P&gt;
&lt;P&gt;Check it out here: &lt;A href="http://demarzo.net/archive/2007/03/12/Revamping-the-OR-Mapper-CodeSmith-templates.aspx"&gt;http://demarzo.net/archive/2007/03/12/Revamping-the-OR-Mapper-CodeSmith-templates.aspx&lt;/A&gt;&lt;/P&gt;</description></item><item><title>CodeSmith templates updated: log4net and memcached support</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2476&amp;key=XlGcsyVFvClL6p8DKhY8cg%3d%3d&amp;post=7470</link><pubDate>Fri, 16 Feb 2007 22:29:49 GMT</pubDate><description>&lt;P&gt;I've just posted an update to my CodeSmith templates. New features include:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Added the &lt;SPAN style="FONT-WEIGHT: bold"&gt;CacheManager &lt;/SPAN&gt;static class to provide a simple interface to &lt;A href="http://www.danga.com/memcached/"&gt;memcached&lt;/A&gt;.&lt;/LI&gt;
&lt;LI&gt;Added interceptor support for &lt;A href="http://logging.apache.org/log4net/"&gt;log4net&lt;/A&gt; as an alternate to &lt;A href="http://www.nlog-project.org/"&gt;NLog&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Let me know what you think -- read the (slightly) updated overview and download the templates here: &lt;A href="http://www.demarzo.net/articles/1057.aspx"&gt;CodeSmith Templates for Wilson's O/R Mapper&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&amp;nbsp;- Brian&lt;BR&gt;&amp;nbsp;- &lt;A href="http://www.demarzo.net"&gt;http://www.demarzo.net&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>New CodeSmith templates (based on the old templates)</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2404&amp;key=9sK2gaa10yUS4c2YlaqLqg%3d%3d&amp;post=7316</link><pubDate>Tue, 28 Nov 2006 14:41:44 GMT</pubDate><description>&lt;P&gt;Problem found in your Mappings.config file --- the namespace and entity types must match your entities. In other words you have this:&lt;BR&gt;&lt;BR&gt;&amp;lt;mappings version="4.2" defaultNamespace="BernerLine.Data.&lt;SPAN style="FONT-WEIGHT: bold"&gt;DataAccess&lt;/SPAN&gt;"&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;entity type="BernerLine.Data.&lt;SPAN style="FONT-WEIGHT: bold"&gt;DataAccess&lt;/SPAN&gt;.Dog" table="Dog" keyMember="_id"&amp;gt;&lt;BR&gt;&lt;BR&gt;... where you should have this:&lt;BR&gt;&lt;BR&gt;&amp;lt;mappings version="4.2" defaultNamespace="BernerLine.Data.&lt;SPAN style="FONT-WEIGHT: bold"&gt;Entities&lt;/SPAN&gt;"&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;lt;entity type="BernerLine.Data..&lt;SPAN style="FONT-WEIGHT: bold"&gt;Entities&lt;/SPAN&gt;"&amp;gt;.Dog" table="Dog" keyMember="_id"&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&amp;nbsp;- Brian&lt;BR&gt;&amp;nbsp;- &lt;A href="http://www.demarzo.net"&gt;http://www.demarzo.net&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>New CodeSmith templates (based on the old templates)</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2404&amp;key=9sK2gaa10yUS4c2YlaqLqg%3d%3d&amp;post=7315</link><pubDate>Tue, 28 Nov 2006 04:13:59 GMT</pubDate><description>&lt;P&gt;Sounds weird. Email me the SVN repo info or just a zipped copy of your code and I'll take a look.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- Brian (&lt;A href="mailto:brian@demarzo.net"&gt;brian@demarzo.net&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>New CodeSmith templates (based on the old templates)</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2404&amp;key=9sK2gaa10yUS4c2YlaqLqg%3d%3d&amp;post=7314</link><pubDate>Mon, 27 Nov 2006 04:13:09 GMT</pubDate><description>&lt;P&gt;&lt;FONT face=Arial size=2&gt;Hi Brian,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Thanks for the quick reply. I have done everything as you mentioned in your check list. There's only one Dog class and it's in the Entities namespace, which is in a separate project. I have no idea why it's looking for that class in the DataAccess namespace.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;If you like I can put up the code on my SVN site for you to have a look? I can email you privately for login/password to the server.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;I have also bastardised the generated code a little, by changing the default Provider.Sql2005 to Provider.MsSql when it finds "System.Data.SqlClient" - but I don't think that has anything to do with this problem....hopefully.....&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Please let me know if you have some time to look at my code.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Cheers,&lt;BR&gt;Dany.&lt;/FONT&gt;&lt;/P&gt;</description></item><item><title>New CodeSmith templates (based on the old templates)</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2404&amp;key=9sK2gaa10yUS4c2YlaqLqg%3d%3d&amp;post=7313</link><pubDate>Mon, 27 Nov 2006 03:13:59 GMT</pubDate><description>&lt;OL&gt;
&lt;LI&gt;I didn't include Welter's generator file, though the one he had should work fine (barring compatibility issues with CodeSmith 4.0, but you can always use 3.2 with it).&lt;/LI&gt;
&lt;LI&gt;Thanks for the note -- I'll update my article to reflect this.&lt;/LI&gt;
&lt;LI&gt;It's tough to figure out without seeing your code, but some things I can suggest you check:&lt;/LI&gt;
&lt;OL&gt;
&lt;LI&gt;Have you specified a different namespace for your Entities and Data Access layers?&lt;/LI&gt;
&lt;LI&gt;Did you create&amp;nbsp;a project reference between both projects (this is not done automatically)?&lt;/LI&gt;
&lt;LI&gt;Do you have a Dog object in both namespaces?&lt;/LI&gt;&lt;/OL&gt;&lt;/OL&gt;
&lt;P&gt;Based on your example, the compiler seems to be looking for a Dog object in your Data Access namespace, not your Entity namespace. For example, the code this:&lt;/P&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;
&lt;P&gt;Dog dog = Retrieve&amp;lt;Dog&amp;gt;.RetrieveFirst(String.Empty)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;... but the compiler sees this:&lt;/P&gt;
&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;
&lt;P&gt;&lt;FONT size=2&gt;BernerLine.Data.DataAccess.&lt;/FONT&gt;Dog dog = Retrieve&amp;lt;&lt;FONT size=2&gt;BernerLine.Data.DataAccess.&lt;/FONT&gt;Dog&amp;gt;.RetrieveFirst(String.Empty)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The compiler should be looking for Dog in your entity namespace.&lt;/P&gt;
&lt;P&gt;I hope that helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- brian (&lt;A href="http://www.demarzo.net"&gt;http://www.demarzo.net&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>New CodeSmith templates (based on the old templates)</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2404&amp;key=9sK2gaa10yUS4c2YlaqLqg%3d%3d&amp;post=7309</link><pubDate>Sun, 26 Nov 2006 01:01:20 GMT</pubDate><description>&lt;FONT size=2&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;Hi there,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;I have just downloaded and started using your template with Codesmith 4.0. There a couple of questions I came up with:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;1. Did you include a generator for the mapping file? I couldn't find it and the generator kept asking for a mapping file. In the end I had to fire up Codesmith 3.2 and use Paul Welter's to generate a Mapping.config file first.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;2. I haven't checked the rest of the code but have found at least one decrepancy between&amp;nbsp;the examples in your blog&amp;nbsp;and the generated code. The method Retrieve&amp;lt;T&amp;gt;.RetrieveFirst() has no parameterless overload. The closest one expects a (string whereClause). I have just passed a String.Empty for the meantime.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;3. This is the only method I've tried so far: Dog dog = Retrieve&amp;lt;Dog&amp;gt;.RetrieveFirst(String.Empty). Unfortunately the solution failed during runtime right at the point of instantiating objectSpace. The error message was:&lt;BR&gt;&amp;lt;quote&amp;gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face=Arial size=2&gt;Exception Wilson.ORMapper.ORMapperException was thrown in debuggee:&lt;BR&gt;ORMapper: Type could not be located in any loaded assembly - BernerLine.Data.DataAccess.Dog&lt;BR&gt;&amp;lt;/quote&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;I can't quite figure out what this means. Any ideas why this comes up?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Thanks,&lt;BR&gt;Dany.&lt;/FONT&gt;&lt;/P&gt;</description></item><item><title>New CodeSmith templates (based on the old templates)</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2404&amp;key=9sK2gaa10yUS4c2YlaqLqg%3d%3d&amp;post=7303</link><pubDate>Fri, 24 Nov 2006 19:43:47 GMT</pubDate><description>I just published the templates, which now include basic unit tests. Check it out here: &lt;A href="http://demarzo.net/archive/2006/11/24/1058.aspx"&gt;http://demarzo.net/archive/2006/11/24/1058.aspx&lt;/A&gt;</description></item><item><title>New CodeSmith templates (based on the old templates)</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2404&amp;key=9sK2gaa10yUS4c2YlaqLqg%3d%3d&amp;post=7287</link><pubDate>Thu, 16 Nov 2006 17:42:38 GMT</pubDate><description>I'm almost finished with a heavily-modified version of Paul Welter's templates. I don't want to release them until I do a little more testing, but I wrote about them on my blog so you can get an idea as to what's different. Feel free to check it out at &lt;A href="http://demarzo.net/archive/2006/11/15/957.aspx"&gt;http://demarzo.net/archive/2006/11/15/957.aspx&lt;/A&gt; and let me know what you think. When I publish the final templates (probably no later than tomorrow) I'll post a follow-up here.</description></item><item><title>using transactions with paul welter's templates</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2311&amp;key=92q%2bPGQrrSOr%2f8pSqrsK0A%3d%3d&amp;post=7234</link><pubDate>Tue, 31 Oct 2006 14:24:24 GMT</pubDate><description>thanks very much</description></item><item><title>Welter Templates and SubEntities ...</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2375&amp;key=%2brkp31xfB0bNx24flMcgOw%3d%3d&amp;post=7233</link><pubDate>Tue, 31 Oct 2006 14:24:09 GMT</pubDate><description>The 4.0 Welter templates don't seem to support the subentity elements ... is that right?&amp;nbsp; Anyone make modifications to those templates to make it work?&lt;br&gt;&lt;br&gt;Any ideas would be appreciated.&lt;br&gt;&lt;br&gt;Thanks - Wayde&lt;br&gt;</description></item><item><title>using transactions with paul welter's templates</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2311&amp;key=92q%2bPGQrrSOr%2f8pSqrsK0A%3d%3d&amp;post=7090</link><pubDate>Tue, 05 Sep 2006 03:03:37 GMT</pubDate><description>&lt;P&gt;Below is an example of what your are looking for. Hope this helps!&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;
&lt;P&gt;--- Begin Sample ---&lt;/P&gt;&lt;CODE&gt;&lt;PRE&gt;Transaction t = null;
try
{
	t = DataManager.ObjectSpace.BeginTransaction();

	// Create the objects
	Entity1 e1 = new Entity1(true);
	Entity2 e2 = new Entity2(true);

	// Set some values	
	e1.SomeValue = "test1";
	e2.SomeValue = "test2";

	// Save the entities to the transaction	
	e1.Save(t);
	e2.Save(t);

	// Commit all the changes
	t.Commit();
}
catch (Exception ex)
{
	// Rollback changes
	if (t != null)
		t.Rollback();

	// Log the error
	Logger.LogError(ex);
	throw;
}
finally
{
	// Dispose the transaction
	if (t != null)
		t.Dispose();
}&lt;/PRE&gt;&lt;/CODE&gt;</description></item><item><title>using transactions with paul welter's templates</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2311&amp;key=92q%2bPGQrrSOr%2f8pSqrsK0A%3d%3d&amp;post=7085</link><pubDate>Sun, 03 Sep 2006 17:47:39 GMT</pubDate><description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Can anyone show me how i can use transactions with paul welter's templates to create and save 2 business entities.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;andrea&lt;/P&gt;</description></item><item><title>Running Nunit tests using Paul Welter's templates</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2277&amp;key=hU%2bT7%2fJtEiFlVkJgxwiC2A%3d%3d&amp;post=7012</link><pubDate>Tue, 15 Aug 2006 04:21:29 GMT</pubDate><description>&lt;P&gt;This is something probably obvious to everyone, but it wasn't to me, so just a note on this.&lt;/P&gt;
&lt;P&gt;I like to keep my unit tests in the same class library as the actual generated classes.&amp;nbsp; On the surface, this seems normal, but the DataManager class requires configuration settings in an app.config file, and it stumped me for a bit.&lt;/P&gt;
&lt;P&gt;Until I realized the obvious, that you can include an application configuration in a class library.&amp;nbsp; You don't actually need to create an application (windows or web forms) project to do this and so can proceed normally.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>run stored procedure with paul welter templates</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2276&amp;key=4%2b6E31%2b6TFZI0mBMBZXt0Q%3d%3d&amp;post=7005</link><pubDate>Mon, 14 Aug 2006 20:53:02 GMT</pubDate><description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;How can i run a stored procedure using the type of business objects you get from paul welter's templates?&lt;/P&gt;
&lt;P&gt;Thanks very much&lt;/P&gt;
&lt;P&gt;andrea&lt;/P&gt;</description></item><item><title>codesmith templates that use opath</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2238&amp;key=PA78vOpNsk7mg8zptDr21Q%3d%3d&amp;post=6937</link><pubDate>Tue, 25 Jul 2006 19:59:22 GMT</pubDate><description>I believe Jason Bunting's templates allow for this.</description></item><item><title>codesmith templates that use opath</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2238&amp;key=PA78vOpNsk7mg8zptDr21Q%3d%3d&amp;post=6931</link><pubDate>Fri, 21 Jul 2006 19:33:27 GMT</pubDate><description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Are there any codesmith templates available for WORM that create business entities with retrieval methods that accept an opath as a parameter rather than a where clause?&lt;/P&gt;
&lt;P&gt;thanks very much&lt;/P&gt;
&lt;P&gt;andrea&lt;/P&gt;</description></item><item><title>Error "Unexpected SchemaExplorer type 'MemberColumnSchema'" / LoreSoft CodeSmith template</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2179&amp;key=KvT4vQ7nSfKaGXBuWHaNHQ%3d%3d&amp;post=6755</link><pubDate>Mon, 05 Jun 2006 16:07:04 GMT</pubDate><description>I've post a fix on:    

http://community.codesmithtools.com/forums/permalink/2389/14278/ShowThread.aspx#14278   

Maybe it was a new "feature" in the SchemaExplorer on the latest CodeSmith version and the "Unofficial" Oracle Schema Provider hadn't been updated since this CodeSmith update.  

Thanks</description></item><item><title>Error "Unexpected SchemaExplorer type 'MemberColumnSchema'" / LoreSoft CodeSmith template</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2179&amp;key=KvT4vQ7nSfKaGXBuWHaNHQ%3d%3d&amp;post=6750</link><pubDate>Sat, 03 Jun 2006 00:13:35 GMT</pubDate><description>I'm going to be reinstalling Oracle again when I have time (no promise on exactly when that will be) and I'll try it then, but maybe someone else has experience to share.&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;</description></item><item><title>Error "Unexpected SchemaExplorer type 'MemberColumnSchema'" / LoreSoft CodeSmith template</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2179&amp;key=KvT4vQ7nSfKaGXBuWHaNHQ%3d%3d&amp;post=6747</link><pubDate>Sat, 03 Jun 2006 00:12:19 GMT</pubDate><description>Hi,

I've post this one on CodeSmith and LoreSoft Forums but can't get any answer than i try here in case anyone have tried this before.  And i don't think i'm trying something unusual than...this is my problem:

I use CodeSmith 3.2.7 Rev 955 with Oracle 10g Enterprise and the latest template (from http://www.loresoft.com/Applications/Templates/919.aspx)

I try to run the "MappingFile.cst" template on an Oracle database via the "unofficial" Oracle Schema Provider for CodeSmith and always got this error:

################### 
Unexpected SchemaExplorer type 'MemberColumnSchema' encountered. Extended properties are not yet supported for this type. 

Detail: 
System.NotSupportedException: Unexpected SchemaExplorer type 'MemberColumnSchema' encountered. Extended properties are not yet supported for this type. 
at SchemaExplorer.OracleNativeSchemaProvider.GetExtendedProperties(String connectionString, SchemaObjectBase schemaObject) 
at SchemaExplorer.SchemaObjectBase.get_ExtendedProperties() 
at _CodeSmith.MappingFile_cst.SetKeyType(TableSchema table, entity currentEntity) 
at _CodeSmith.MappingFile_cst.__RenderMethod1(TextWriter writer, Control control) 
at CodeSmith.Engine.DelegateControl.Render(TextWriter writer) 
at CodeSmith.Engine.Control.RenderChildren(TextWriter writer) 
at CodeSmith.Engine.CodeTemplate.Render(TextWriter writer) 
at CodeSmith.Engine.CodeTemplate.RenderToString() 
at ej.s() 
##################

I don't think this error is related to the template, but if anyone has or could try this template with the same kind of setup i have, maybe it could help me diagnose this one.

Or maybe you have alternate solution for me to generate the mapping file?  I've tried the WilsonORHelper, but it has been gone for hours (8 and counting) without any result.  Maybe i haven't use the good DB provider...I use this one:

Provider=OraOLEDB.Oracle;Data Source=SERVER_NAME;User ID=USER_NAME;Password=USER_PWD;

Thanks guys</description></item><item><title>mygeneration?</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2109&amp;key=vqlXCClYmanXO8gOSc1%2bUw%3d%3d&amp;post=6669</link><pubDate>Thu, 11 May 2006 13:46:44 GMT</pubDate><description>Yep, sounds like I didn't have the correct connection string or something.&amp;nbsp; I do remember having issues with it and not finding answers so the $50 for a registered copy of a tool I use often didn't seem too bad.&amp;nbsp; And I didn't have to do anything different... in other words the registered copy solved my problem - not a connection string.&amp;nbsp; So I dunno.&amp;nbsp; &lt;br&gt;&lt;br&gt;But I'm happy to hear you can use the free version too.&amp;nbsp; And I had 2.6 returning info about the sys table with sql2k as well.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Jason&lt;br&gt;</description></item><item><title>mygeneration?</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2109&amp;key=vqlXCClYmanXO8gOSc1%2bUw%3d%3d&amp;post=6667</link><pubDate>Thu, 11 May 2006 05:02:45 GMT</pubDate><description>I have generated code with my templates for WORM against SQL Server 2005, using v2.6 of CodeSmith (i.e. the free version). The only issue I have seen is that CodeSmith returns metadata for a table called Sysdiagrams as if it were a regular table in your schema, when it really is, I suppose, some sort of 'hidden' table meant for storing info about diagrams associated with the database.&lt;br&gt;&lt;br&gt;I agree that it would be nice if CodeSmith supported more databases out of the box, but you can easily find quite a few free, user-maintained schema providers for other databases, and write your own if you had too (although most well-known databases are covered).&lt;br&gt;&lt;br&gt;</description></item><item><title>mygeneration?</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2109&amp;key=vqlXCClYmanXO8gOSc1%2bUw%3d%3d&amp;post=6662</link><pubDate>Wed, 10 May 2006 17:31:36 GMT</pubDate><description>Hey Jason:&lt;br&gt;&lt;br&gt;I accidentally deleted your posted instead of approving it -- oops, sorry about that.&amp;nbsp; I just don't use CodeSmith or SqlExpress enough to know for sure the free CS version supports it, but I also have a hard time believing it doesn't since there's really nothing much different about SqlExpress.&amp;nbsp; Don't get me wrong, I've seen people have lots of issues connecting to SqlExpress, even a few using my ORHelper or ORMapper, but it always appeared that it was a problem based on not getting the connection string right -- afterall SqlExpress is Sql 2005.&amp;nbsp; Anyhow, I'm not in a position to make guarantees, especially related to CodeSmith, but it just strikes me as something that should not be an issue.&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;</description></item><item><title>mygeneration?</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2109&amp;key=vqlXCClYmanXO8gOSc1%2bUw%3d%3d&amp;post=6645</link><pubDate>Fri, 05 May 2006 17:57:24 GMT</pubDate><description>Hey Jason:&lt;br&gt;&lt;br&gt;Try a connection string like "Server=&lt;font face="Courier New" size="2"&gt;ComputerName\SQLEXPRESS&lt;/font&gt;;DataBase=&lt;font face="Courier New" size="2"&gt;DatabaseName&lt;/font&gt;;Integrated Security=SSPI;".&amp;nbsp; There's also a way to allow something other than integrated security if you must -- I think its a registry setting -- let me know if I need to look it up.&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;</description></item><item><title>mygeneration?</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2109&amp;key=vqlXCClYmanXO8gOSc1%2bUw%3d%3d&amp;post=6644</link><pubDate>Fri, 05 May 2006 15:46:12 GMT</pubDate><description>Hey Paul,&lt;br&gt;&lt;br&gt;Yes absolutely the SQL 2005 support &lt;i&gt;should be&lt;/i&gt; an orm issue and not a code gen issue.&amp;nbsp; However I was unable to connect to my SQL 2005 instance with the free version of CS.&amp;nbsp; Thus my comment regarding the lack of support.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Jason&lt;br&gt;</description></item><item><title>mygeneration?</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2109&amp;key=vqlXCClYmanXO8gOSc1%2bUw%3d%3d&amp;post=6642</link><pubDate>Fri, 05 May 2006 10:34:58 GMT</pubDate><description>Hi Jason:&lt;br&gt;&lt;br&gt;There's no reason generally to have explicit Sql 2005 support for simple entity and mapping generation since that's simply a matter of getting the schema.&amp;nbsp; Of course you want Sql 2005 support when you actually issue paged queries, but that really should be an ORMapper runtime issue and not a code gen issue.&lt;br&gt;&lt;br&gt;Anyhow, while I do still think CodeSmith is dominant, I can also more than agree that MyGeneration is growing, especially now that future CS versions aren't free -- so I would love to see someone create (or donate if you already have them) some MyGeneration templates.&amp;nbsp; I may eventually get to it myself, but my time is too tight for now.&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;</description></item><item><title>mygeneration?</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2109&amp;key=vqlXCClYmanXO8gOSc1%2bUw%3d%3d&amp;post=6641</link><pubDate>Fri, 05 May 2006 10:29:23 GMT</pubDate><description>Too bad the free version of CS doesn't support SQL 2005, so it's not like there's no reason to go with an alternative.&amp;nbsp; Come to think of it, CS supports no where near the twelve DBMS's that mygeneration purports to.&lt;br&gt;&lt;br&gt;As a paid licensee of CodeSmith, I like thier product, yet if I was really into the "Pro" level of features I might opt for an open source or freeware version that did have those features; as the license IMO at that level is high.&lt;br&gt;&lt;br&gt;Now that I've looked at thier page some more I might just dig into it some more... thanks OP!&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Jason&lt;br&gt;</description></item><item><title>WilsonORHelper support for SQL express (.NET 2.0)</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2132&amp;key=tay0uQQ7x4JxoBWkA582AA%3d%3d&amp;post=6636</link><pubDate>Fri, 05 May 2006 00:47:28 GMT</pubDate><description>&lt;P&gt;Hi Paul,&lt;/P&gt;
&lt;P&gt;Yep, that connection string works better, now the tool works.&lt;/P&gt;
&lt;P&gt;Only it doesn't detect nullable columns yet, but it's already very useful!&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Wout&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>WilsonORHelper support for SQL express (.NET 2.0)</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2132&amp;key=tay0uQQ7x4JxoBWkA582AA%3d%3d&amp;post=6626</link><pubDate>Wed, 03 May 2006 15:36:17 GMT</pubDate><description>Hi Wout:&lt;br&gt;&lt;br&gt;As least with the full Sql Server 2005 product there is no need for anything special in the ORHelper -- just select Ms Sql.&amp;nbsp; The Sql2005 Provider in the ORMapper is necessary to get paging optimized using the Row_Number function, and maybe other Sql 2005 specific things in the future, but the ORHelper just gets the schema and nothing more.&amp;nbsp; As for SqlExpress, I know it works with the ORMapper pretty easily, but I haven't tried it with the ORHelper -- have you tried something like "Server=&lt;font face="Courier New" size="2"&gt;GDV842J\SQLEXPRESS&lt;/font&gt;;DataBase=&lt;font face="Courier New" size="2"&gt;FingerPrint&lt;/font&gt;;Integrated Security=SSPI;"?&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;</description></item><item><title>WilsonORHelper support for SQL express (.NET 2.0)</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2132&amp;key=tay0uQQ7x4JxoBWkA582AA%3d%3d&amp;post=6623</link><pubDate>Wed, 03 May 2006 15:08:50 GMT</pubDate><description>&lt;P&gt;Hi Paul,&lt;/P&gt;
&lt;P&gt;I noticed there's no SQL2005 choice in the WilsonORHelper. Furthermore&amp;nbsp;I get an error (without message)&amp;nbsp;when trying to connect to it.&amp;nbsp;Is support for SQL express planned any time soon? (I tried the following connect string, which works in a code prototype I worked out: &lt;FONT face="Courier New" size=2&gt;"Data Source=GDV842J\SQLEXPRESS;Initial Catalog=FingerPrint;Integrated Security=True"&lt;/FONT&gt;).&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Wout&lt;/P&gt;
&lt;P&gt;E-mail: wout at woutware dot com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>mygeneration?</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2109&amp;key=vqlXCClYmanXO8gOSc1%2bUw%3d%3d&amp;post=6572</link><pubDate>Thu, 27 Apr 2006 23:10:27 GMT</pubDate><description>Do you not like CodeSmith? Perhaps you didn't know that &lt;b&gt;&lt;a href="http://www.codesmithtools.com/freeware.aspx"&gt;there is a free version of CodeSmith available&lt;/a&gt;&lt;/b&gt;, so there is no need to purchase it.&lt;br&gt;&lt;br&gt;Has anyone written a set of templates for MyGeneration and WORM?&lt;br&gt;&lt;br&gt;</description></item><item><title>mygeneration?</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2109&amp;key=vqlXCClYmanXO8gOSc1%2bUw%3d%3d&amp;post=6556</link><pubDate>Wed, 26 Apr 2006 12:53:17 GMT</pubDate><description>&lt;P&gt;Has anyone played with a mygeneration template for WORM?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>New version of Jason Bunting's CodeSmith templates available</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2107&amp;key=pdeWzHtLQviJRlh%2fd4Q8vQ%3d%3d&amp;post=6551</link><pubDate>Tue, 25 Apr 2006 18:58:37 GMT</pubDate><description>&lt;font face="Verdana" size="2"&gt;The new version (v1.2) adds support for nullable types with 2.0 and a few other features/updates. &lt;b&gt;&lt;a href="http://www.sapientdevelopment.com/WORMFramework.aspx?ref=wormforum"&gt;Get it here&lt;/a&gt;&lt;/b&gt;.&lt;br&gt;&lt;/font&gt;</description></item><item><title>ORHelper with MySQL</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1641&amp;key=P%2fUJsVP8mGsH7EHQHHAorg%3d%3d&amp;post=6540</link><pubDate>Sat, 22 Apr 2006 02:52:30 GMT</pubDate><description>Hi Ian:&lt;br&gt;&lt;br&gt;Find and download an OleDb driver for MySql (I found several pretty quickly on Google, but I'm not in a position to recommend any one in particular), install it and read the docs to determine what your connection string should be, and then select the OleDb option and the ORHelper and specify your connection string.&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;</description></item><item><title>ORHelper with MySQL</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1641&amp;key=P%2fUJsVP8mGsH7EHQHHAorg%3d%3d&amp;post=6539</link><pubDate>Sat, 22 Apr 2006 02:43:41 GMT</pubDate><description>&lt;P&gt;What does that mean "setup an OleDb driver for MySql"? How would you do this?&lt;/P&gt;
&lt;P&gt;-Ian&lt;/P&gt;</description></item><item><title>Project setup using Pauls CodeSmith templates and ORMapper? (winforms project)</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2063&amp;key=GCJugqUQuE%2fGoXMTiTabfA%3d%3d&amp;post=6419</link><pubDate>Wed, 05 Apr 2006 15:16:34 GMT</pubDate><description>Hello,&lt;br&gt;&lt;br&gt;I know that if you don't make sure the default namespace for the project is set correctly the DataManager will be unable to locate the embedded mappings config.&amp;nbsp; May or may not be your issue but sounds similiar.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Jason S.&lt;br&gt;</description></item><item><title>Project setup using Pauls CodeSmith templates and ORMapper? (winforms project)</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2063&amp;key=GCJugqUQuE%2fGoXMTiTabfA%3d%3d&amp;post=6415</link><pubDate>Tue, 04 Apr 2006 17:57:35 GMT</pubDate><description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I've just started a new project using ORMapper and the codesmith template from Paul. But I'm having some problems with the project setup.&lt;/P&gt;
&lt;P&gt;I created a windows application and a windows control library project for my business logic. In the control library I put all my entity classes as well as the DataManager class and Mappings.config. I've made sure that my Mappings.config is an embedded resource, but I still get an error stating that DataManager is unable to get it from the resources. I've tried to move the Mappings.config into my winforms project but I get the same result.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there something special I should think about when setting up my project? Something like "best practices" when creating a winforms app with the ORMapper.&lt;/P&gt;
&lt;P&gt;Btw, I would like to tell you how much I love the ORMapper and the codesmith templates, great work guys! Extremely nice to get a base for my entity objects up and running in a matter of seconds.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Mats Lycken&lt;/P&gt;</description></item><item><title>New Version of the CodeSmith ORMapper Templates</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2061&amp;key=WPXiZQ1jUuvvvmTLCp%2fjYQ%3d%3d&amp;post=6409</link><pubDate>Mon, 03 Apr 2006 16:52:44 GMT</pubDate><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;The CodeSmith templates for the Wilson ORMapper have been updated.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;There are many great new features.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Most of the new features are for .net 2.0.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;The following is a summary of the new features.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;The mapping file in now updated.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Only the settings that need to be updated from the database are changed.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Settings like sortOrder, readOnly, lazyLoad, and many others can be edited manually and not be overwritten when the template re-runs.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;You can also manually add entity elements and not have it changed by adding an attribute ‘generated’.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;entity … generated="false"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Major overhaul to the class generator&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;- Classes now inherit from a bass class called PersistBase&amp;lt;T&amp;gt; or RetrieveBase&amp;lt;T&amp;gt; for readonly entities.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;The base classes contain most of the functionality and make it easier to make API changes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;- Classes now have full support for ObjectDataSource binding.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;ObjectDataSource can be tricky to use.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;There will be a tutorial in the future on how to use the templates.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;- Classes support validation with the addition of the IsVaild method.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;- Classes now track IsDirty and IsDeleted.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;- Simplified the API by creating more overloads. Renamed several functions, like RetrieveScalar to RetrieveFirst.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;- Generator now supports the lookup element of the mapping file.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;- Added a TransactionManager class to make working with transactions easier&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;- The class generator can now update a project file with the generated files.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Generated partial classes are now hidden under the standard class, like the Windows Form designer files.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;The mapping file is also added to the project and marked as an embedded resource. &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;The new templates require CodeSmith 3.2.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;A href="http://www.loresoft.com/Applications/Templates/default.aspx"&gt;http://www.loresoft.com/Applications/Templates/default.aspx&lt;/A&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;~ Paul&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description></item><item><title>Class Diagram Many relationship</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2046&amp;key=mIfh%2f%2bqkRcAJfweT1UiY0Q%3d%3d&amp;post=6347</link><pubDate>Thu, 23 Mar 2006 12:20:07 GMT</pubDate><description>Hey Danny:&lt;br&gt;&lt;br&gt;If I remember correctly you have to be using generics for it to even be an option.&amp;nbsp; So if you have a property of type IList&amp;lt;T&amp;gt; then you should just be able to right-click it and select Show as Collection Association.&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;</description></item><item><title>Class Diagram Many relationship</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2046&amp;key=mIfh%2f%2bqkRcAJfweT1UiY0Q%3d%3d&amp;post=6345</link><pubDate>Thu, 23 Mar 2006 12:18:31 GMT</pubDate><description>Hello all,&lt;br&gt;&lt;br&gt;i'm very new with the wilson OR mapper so excuse me.&lt;br&gt;This question isn't about the mapper itself but about the use of a class diagram.&lt;br&gt;I used the class designer in Visual Studio 2005, but i'm not able to create a many relationship.&lt;br&gt;When I look at the class diagram example at the wilson site, i see the use of two arrows (for example Categories and Contacts).&lt;br&gt;How can this be done?&lt;br&gt;&lt;br&gt;Regards, Danny Oldenhave&lt;br&gt;</description></item><item><title>Any CodeSmith Templates designed to work with an IsolatedContext?</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2013&amp;key=2GzYAIFwIORz9bayIjyVpQ%3d%3d&amp;post=6238</link><pubDate>Fri, 10 Mar 2006 05:07:49 GMT</pubDate><description>I've modified Paul Welter's CodeSmith templates to generate a DataManager class that uses the IsolatedContext.&amp;nbsp; You can get the download from my &lt;a href="http://blog.christianasp.net/2006/03/10/CodeSmithTemplatesForIsolatedContext.aspx"&gt;blog&lt;/a&gt;.&lt;br&gt;&lt;br&gt;Hope this helps!&lt;br&gt;David&lt;br&gt;</description></item><item><title>Any CodeSmith Templates designed to work with an IsolatedContext?</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=2013&amp;key=2GzYAIFwIORz9bayIjyVpQ%3d%3d&amp;post=6233</link><pubDate>Thu, 09 Mar 2006 20:12:14 GMT</pubDate><description>Just wondering as I can't see myself not using an IsolatedContext for every web app I've been involved with.&amp;nbsp; &lt;br&gt;&lt;br&gt;Maybe one or both of the existing templates linked to on the site can be easily modified to do so???&lt;br&gt;&lt;br&gt;Thanks - Wayde&lt;br&gt;</description></item><item><title>Templates for ASP.NET environment???</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1936&amp;key=0NhR7gwobnAEvZOyE22%2f0A%3d%3d&amp;post=6096</link><pubDate>Thu, 02 Mar 2006 09:09:43 GMT</pubDate><description>Note that you would have to be using two different managers IN THE SAME REQUEST to see a conflict.  Just two different managers somewhere on a server are not going to see any conflicts.  But for using two different instances of a mapper in the same request you would indeed have to have different cache keys.</description></item><item><title>Templates for ASP.NET environment???</title><link>http://wilsonormapper.com/Forums/Default.aspx?part=74&amp;action=thread&amp;id=1936&amp;key=0NhR7gwobnAEvZOyE22%2f0A%3d%3d&amp;post=6095</link><pubDate>Thu, 02 Mar 2006 06:02:12 GMT</pubDate><description>In my case, we have a &amp;quot;portal framework&amp;quot; class library that has all the standard features of a web application, such as users, roles, security, content management, navigation, URL rewriting, file management, and so forth.  This class library gets its own DataManager class, mapping.config, and set of entities.  On top of this application framework we have built several web applications that have a separate DataManager class, entity classes, and a mapping.config that only includes the additional tables that are specific to that application.  By using a Guid for the context key, I'll never have to worry about changing the key name whenever I set up a new project.  Like Marc, I like to avoid &amp;quot;magical&amp;quot; numbers or strings hard-coded into my applications whenever possible.&lt;br /&gt;
&lt;br /&gt;
As Forrest Gump said, &amp;quot;One less thing.&amp;quot;  ;)&lt;br /&gt;
&lt;br /&gt;
David</description></item></channel></rss>