NHibernate 2.x Beginner's Guide
Monday, May 24, 2010, 05:47 AM - Programming, C#, VB.NET, ASPX, CodeSmith, NHibernate
My book is finally out! After over a year of more work than I ever thought it would take, I was finally able to hold a copy in my hand on Friday!

You can pick up the book at the publisher's website, and for $5 more you can have the PDF version also: https://www.packtpub.com/nhibernate-2-x-beginners-guide/book

If you prefer, you can also pick it up at Amazon or Barnes and Noble

If you're interested, you can take a look at a sample chapter here, just click on the "Sample Chapter" button.

[ 2 comments ] ( 18 views )   |  [ 0 trackbacks ]   |  permalink  |   ( 2.9 / 232 )
NHibernate 2.x Beginner's Guide
Monday, May 24, 2010, 05:46 AM - Programming, C#, VB.NET, ASPX, CodeSmith, NHibernate
My book is finally out! After over a year of more work than I ever thought it would take, I was finally able to hold a copy in my hand on Friday!

You can pick up the book at the publisher's website, and for $5 more you can have the PDF version also: https://www.packtpub.com/nhibernate-2-x-beginners-guide/book

If you prefer, you can also pick it up at Amazon or Barnes and Noble

If you're interested, you can take a look at a sample chapter here, just click on the "Sample Chapter" button.

[ add comment ]   |  [ 0 trackbacks ]   |  permalink  |   ( 2.9 / 215 )
Upgrading CodeSmith property set files
Saturday, November 10, 2007, 04:21 PM - CodeSmith
The codesmith tool is a Great application, but when they shifted from version 3 to version 4, they went from the .xml property set files to the newer .csp (codesmith project) files. I have been manually converting them, but found this trick today. In the codesmith folder, there is a tool called cs.exe. To upgrade the file from .xml to .csp, just use:

cs.exe OldCodeSmithFile.xml /upgrade:NewCodeSmithFile.csp

That's it. it reads the old property set files and creates a new csp file for you.

[ add comment ]   |  [ 0 trackbacks ]   |  permalink  |   ( 2.9 / 277 )
MSBuild - Changing References
Thursday, June 14, 2007, 10:49 AM - .NET, C#, CodeSmith
I had a need recently to build a project against a changing set of references. I have a CodeSmith AddIn for a set of templates that I maintain, and they reference the CodeSmith.Engine.dll and SchemaExplorer.dll. I need to compile this AddIn against both version 3.2 and 4.0 (as well as potentially others) of the CodeSmith dll's. Using MSBuild, I was able to set a reference path for the dll's, and an alternate output path for each of these dll's, like this:

msbuild.exe CodeSmith_NHibernate.csproj
/property:Configuration=Release;
ReferencePath=References\CodeSmith\3.2\;
OutDir=CodeSmith_AddIn\v3.2\
/target:Rebuild

It works like a champ, references the correct 3.2 dll's, and provides me with the output I need!

[ add comment ]   |  [ 0 trackbacks ]   |  permalink  |   ( 3 / 287 )
Simple Class Example
Sunday, April 9, 2006, 11:02 AM - NHibernate, .NET, C#, CodeSmith, NHibernate
I recently saw a request for a simple class example that would link a Publisher, Author, and Book class to one another. Here is a Simple Class Test that highlights that example. Here are the Same Classes in VB. These classes are strikingly similar to the ones that NHibernate requires to work. I also have a set of CodeSmith templates to auto-generate this entire NHibernate data layer from a database...

[ add comment ]   |  [ 0 trackbacks ]   |  permalink  |   ( 3 / 122 )

Next