How to Generate NHibernate Configuration Using ActiveWriter

Preview 3 has this functionality, but there are a few things to mention. ActiveWriter use ActiveRecord assembly to generate NHibernate config files. So you’ll need Castle.ActiveRecord.dll, NHibernate.dll and all necessary dependincies to make it work. Set the target to **NHibernate **This way, AW will generate .hbm.xml files for each entity in your model. Set the Assembly Path to where Castle.ActiveRecord.dll, NHibernate.dll and all necessary dependincies reside. The design decision was that, I didn’t want to package these assemblies with AW. Rather than that, I thought user will most probably have them so they can choose whatever version they want to generate the configuration. If you don’t supply the path, AW (VS, actually) will look for them in GAc and then {Your VS Path}Common7IDECastle.ActiveRecord.dll, so if you have them in one of those places, it should be fine. One other quirk is, if you first try to generate with the wrong path, setti ng the correct one later won’t work until you restart Visual Studio. This is the framework’s limitation, once you try to load an assembly and get an error, the result will be cached for subsequent tries. So VS appdomain should be restarted to make it work. I’ll have a possible soliton for this for a future version of ActiveWriter (will try to load in a dummy appdomain, then in the VS appdomain) You may use the fully qualified assembly names for Active Record Assembly Name and NHibernate Assembly Name to target a specific version in the GAC, if you have more than one in there. When you save the model, AW will generate configuration. I’ll prepare a better documentation in the wiki. Have fun. Update: AW does not work with release version of Castle assemblies (RC2?) for NHibernate generation, it works with the trunk (or with recently compiled assemblies). You can use the latest bits from the build server: http://builds.castleproject.org/cruise/index.castle ...

June 20, 2007 · 2 min · Carlo Bertini [WaYdotNET]
#Uncategorized

4° Workshop "Introduzione al Domain-Driven Design (DDD)"

4° Workshop “Introduzione al Domain-Driven Design (DDD)” Venerdì 6 Luglio 2007 Sede Casa Cecchi - Centro Creativo Ambientale Urbano Via della Paleotta, 11- 61032 Fano (PU) In questo appuntamento parleremo di Domain Driven Design (DDD), una metodologia costituita da una serie di principi e tecniche di progettazione, utile nella realizzazione di software in cui il dominio dell’applicazione ha una certa complessità. Questo tema si ricollega al workshop su NHibernate, in quanto gli ORM danno il meglio di sé quando vengono utilizzati per applicazioni la cui progettazione è orientata al domain model: non a caso, uno degli speaker sarà nuovamente Giancarlo Sudano, che già ci aveva parlato di NHibernate. ...

June 15, 2007 · 2 min · Carlo Bertini [WaYdotNET]
#Uncategorized

ed io ? :D

Your programmer personality type is: DHTB You’re a Doer. You are very quick at getting tasks done. You believe the outcome is the most important part of a task and the faster you can reach that outcome the better. After all, time is money. You like coding at a High level. The world is made up of objects and components, you should create your programs in the same way. You work best in a Team. A good group is better than the sum of it’s parts. The only thing better than a genius programmer is a cohesive group of genius programmers. You are a liBeral programmer. Programming is a complex task and you should use white space and comments as freely as possible to help simplify the task. We’re not writing on paper anymore so we can take up as much room as we need. ...

June 6, 2007 · 1 min · Carlo Bertini [WaYdotNET]
#Uncategorized

google traduce :D

stavo guardando un sito in inglese e per pigrizia mentale (ok ok ignoranza ) l ho tradotta al volo con google …. fin qui neinte di strano, traduzione un po a capocchia , la cosa che mi ha fatto letteramente piegare in due dal ridere è stato: Free download , tradotto in “Liberare il trasferimento dal sistema centrale verso i satelliti”

May 30, 2007 · 1 min · Carlo Bertini [WaYdotNET]
#Uncategorized

BlogEngine.NET versione 1.0 definitiva

E’ stata rilasciata la versione 1.0 definitiva di BlogEngine.NET, un motore di blogging realizzato in C# e disponibile su CodePlex. Una caratteristica molto interessante di questo sistema è che esso si basa interamente su XML, quindi non richiede il setup di database di appoggio e, di conseguenza, può essere utilizzato in qualunque spazio web con supporto ad ASP.NET. fonte: http://blogs.ugidotnet.org/marcom/archive/2007/05/24/79175.aspx

May 24, 2007 · 1 min · Carlo Bertini [WaYdotNET]
#Uncategorized

http://www.asp.net/ nuovo veste

E’ appena diventato online (visto che tutt oggi che cerco di entrare, e nn ci sono riuscito…anche ora ci sono un po di problemi :D) img: http://img130.imageshack.us/img130/5792/asrn4.png

May 16, 2007 · 1 min · Carlo Bertini [WaYdotNET]
#Uncategorized

http://www.asp.net/ nuovo veste

E’ appena diventato online (visto che tutt oggi che cerco di entrare, e nn ci sono riuscito…anche ora ci sono un po di problemi :D) img: http://img130.imageshack.us/img130/5792/asrn4.png

May 16, 2007 · 1 min · Carlo Bertini [WaYdotNET]
#Uncategorized

http://www.asp.net/ nuovo veste

E’ appena diventato online (visto che tutt oggi che cerco di entrare, e nn ci sono riuscito…anche ora ci sono un po di problemi :D) img: http://img130.imageshack.us/img130/5792/asrn4.png

May 16, 2007 · 1 min · Carlo Bertini [WaYdotNET]
#Uncategorized

NHibernateRepository Upgraded for NHibernate 1.2 RC1

Now that NHibernate 1.2 is finally out of Beta stage and into official Release Candidate mode, I felt it was appropriate to upgrade NHibernateRepository to use it. Not much has changed and there isn’t any new functionality, but I wrote some tests for it and of course updated its references to NHibernate 1.2 RC1. You can get the latest NHibernateRepository here. Fonte: http://www.arcware.net/archive/2007/04/06/NHibernateRepository-Upgraded-for-NHibernate-1.2-RC1.aspx

May 9, 2007 · 1 min · Carlo Bertini [WaYdotNET]
#Uncategorized

Simple TDD Visual Studio Templates

To speed up the creation of solutions like these, I’ve created two templates to plug into Visual Studio to do it for you. There’s one for testing with MbUnit 2.3 RTM and one for NUnit 2.2.9. Download the one you want to your VS2005 Project Templates folder and then create a new project. You’ll see the options to use the templates automagically. FONTE: Dan’s Archive post: http://blogs.ipona.com/dan/archive/2007/01/02/SimpleTDDVisualStudioTemplates.aspx

May 8, 2007 · 1 min · Carlo Bertini [WaYdotNET]
#Uncategorized