Thursday, 14 February 2008

Change log for the WineCellarManager

A new release of the WineCellarManager is ready. Here's an overview of the most important changes:

  1. From now on the WineCellarManager will be domain driven ;-). It will be using the rhino commons library. For the readers that do not know that set of extremely useful libraries, check out Ayende's blog. The guy produces an enormous amount of very interesting posts, a must read in my opinion. For the ones that missed the Domain Driven Design hype, I suggest reading "Domain Driven Design" by Eric Evans.
  2. I also started using Windsor, an more specifically the Windsor Monorail integration using Binsor configuration.
  3. I added a simple generic search for Wines, on which I already wrote a post.
  4. I added some unit tests to test the dynamic component features. Although they have not really something to do with the WineCellarManager, I will leave those there, because they could be interesting for someone.
  5. Some changes were done to be able to make the WineCellar work against the lastest version of Castle Monorail (after the Controller refactoring).
  6. Usage of a "SharedLibs" folder to specify clearly which external libraries are used.
  7. Cleaned up the bin and obj folders so that the .zip with the source code is considerably smaller.

This release does not really replace the previous release. It just shows another way of working, using the Repository<T> pattern and Windsor.

Download it here!

7 comments:

Anonymous said...

I am if this questions sounds elementary. I have just downloaded your the application with view of understudying it to use Monorail better, but could not locate the script for the database. I have created an empty database and change the connection string to point to the empty DB but still could not make it work. Do I need to create the tables manually?

Bart said...

Check the readme file. There is a pretty good explanation on what to do there.

MSI said...

Thank you for your swift response despite your busy schedule. Another clarification is about the scaffolderHelper that you used in some of the view.I cannot figure out which assembly to reference in order to use it in my test project.

Bart said...

That's a good question. The winecellar on monorail is actually a bit outdated since I am currently on a ASP.NET MVC project. I cannot find the ScaffoldHelper anymore but here is a link that might help you: http://code.google.com/p/dbstools/source/browse/trunk/DBS-CMS/SiteModel/WebSiteModel/Componenti/Helper/ScaffoldHelper.cs?r=153

MSI said...

Thank you once again. Now, having moved to ASP.NET MVC, what would you say are the compelling reasons that one may consider to move to ASP.NET MVC as against Monorail?

Bart said...

Well it was easier to convince my management ;-) I still like Monorail more though, it's just more mature.

Anonymous said...

Can you comment on how to create database, I have read readme file and fine with first point but not to second point...

1) Run the aspnet_regsql.exe on C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 to install the membership provider
tables/stored procedures on your database.

2) Let ActiveRecord create your database schema.