Hi all, at first sight I like Cuyahoga because of its clean foundations. Great job.
Just a question to those of you that already have a good understanding of its architecture. Do you think that adding modules with data access based on Castle Activerecord (which I'm found of) is easy, not so easy, feasible, or incompatible with the current pure nhibernate approach ?
It should be really easy to implement I think (don't know whether the activerecord NHibernate assembly-versions conflict with the NHibernate assemblies in Cuyahoga, but that should be easy to figure out).
The modules you develop are almost stand-alone applications. To add a module you should inherit BaseModuleControl class in your user control and you should create a modulecontroller class which inherits the ModuleBase class.
When you are developing modules you can choose the data access method you like most. For example, the forum is based on stored procs.
For more info, you should read the
Module Development Guide
Just to second Efie's reply: ActiveRecord should be perfectly fine as long as you use a version that is linked against NHibernate 1.0.2 or 1.0.4.
Cuyahoga uses the latest official Castle release that contains ActiveRecord RC1. This version should work. The current trunk version of ActiveRecord doesn't work because it requires NHibernate 1.2.
Thanks for your prompt replies. IMO Cuyahoga is the best choice for a highly customisable portal framework in C#.
I try to impleted Active Record in a cuyahoga module but when I try to initialize the access class.
Ex (this code is in the global.asax of cuyahoga.web and the classes are in cuyahoga.mymodule):
Castle.ActiveRecord.Framework.IConfigurationSource source = System.Configuration.ConfigurationManager.GetSection("activerecord") as Castle.ActiveRecord.Framework.IConfigurationSource;
Castle.ActiveRecord.ActiveRecordStarter.Initialize(source, typeof(Components.PK_Proyectos.LD_Terra), typeof(Components.PK_Proyectos.LD_Terra_trd));
How I iniatilize this classes?
Thanks for your help and sorry for my poor english.
Pfew, I'm afraid I don't have enough knowledge of ActiveRecord. Maybe you can ask this question on the Castle forum? Some people over there also know a little about Cuyahoga, so the chance of success will be higher.
Thanks for your quickly reply.8-)
I try in castle project forums.
see you.