Re: You have accessed an ActiveRecord class that wasn't properly initialized.

2009-05-27 Thread Markus Zywitza
And what about ManilaPayroll.BAL.dll which is the assembly you are trying to load for initialization? 2009/5/26 Bhumip bhumiph...@gmail.com: Hi John, Following is the list of dlls in my bin folder. Castle.ActiveRecord.dll Castle.Components.Validator.dll Castle.Core.dll

Re: Newbie question - Windows forms databinding

2009-05-27 Thread Markus Zywitza
2009/5/26 Michael.d michael.dadash...@gmail.com: Hmm, I cant believe nobody in this community have build a simple Master/ Detail form using Databinding Or have I posted my question in wrong group??? I never build a Forms app, most Castle users are MonoRail followers rather than Databinding

Re: You have accessed an ActiveRecord class that wasn't properly initialized.

2009-05-27 Thread Bhumip
I am trying to deploy my application under sub domain (virtual directory) of my root application. 1) Root application there is following nhibernate section in web.config configSections section name=nhibernate type=System.Configuration.NameValueSectionHandler, System,

AspView Debug

2009-05-27 Thread Gabriel Mancini de Campos
Hi Every one (KEN :D) somebody know how i using debug on AspView Views ?? i put de vcompiler into /bin i mark the debug true on config i put de dll of my View project nested in aspView Assemply config. but i put the breakpoint on VS 2008 and dont stop execution.. please someone

Re: You have accessed an ActiveRecord class that wasn't properly initialized.

2009-05-27 Thread Markus Zywitza
I don't know ASP.NET to well: Is Global.asax executed for an application in a virtual directory? Please do some logging there to verify that ActiveRecord is really initialized. -Markus 2009/5/27 Bhumip bhumiph...@gmail.com: I am trying to deploy my application under sub domain (virtual

Re: AspView Debug

2009-05-27 Thread Ken Egozi
remember - the view templates (the aspx files) are *not* the actual sources. they get pre-compiled into actual c# classes, which in-turned are compiled to CompiledViews.dll so - you need to set saveFiles=true. then you load up the resulted source files into studio. On Wed, May 27, 2009 at

Multiple HasMany Relationships to a Single Entity (Schema Generation)

2009-05-27 Thread Hexedit
I have three unique entity classes that each have a collection of a fourth entity via the HasMany attribute. The mappings should be one-to- many unidirectional relationships from entities A, B, and C to entity D. Each HasMany attribute references the same table and the same column for the foreign

Re: Multiple HasMany Relationships to a Single Entity (Schema Generation)

2009-05-27 Thread Hexedit
I apologize I worded my first message improperly. D should have no knowledge of the Entities A, B or C. In my object there is no Property for linking back to any one of the other entities. So it is a one sided HasMany with no related BelongsTo. I suppose an Any tag would work well in this

Using Component.Scheduler in Monorail produces random job failures

2009-05-27 Thread jsmorris
I am exploring the use of Component.Scheduler to execute a few, short duration jobs within my monorail web app. I have read people's concern about asp.net killing your threads before the job is complete. Let's ignore that for the time being, unless using the Component.Scheduler in a monorail

Re: Multiple HasMany Relationships to a Single Entity (Schema Generation)

2009-05-27 Thread Markus Zywitza
It might work with an explicit Any-Property in D. You must never forget that even unidirectional relations are relations. And on the database, one-to-many relations are implemented with FKs on the one-side, regardless of whether AR hides that from the model or not. -Markus 2009/5/27 Hexedit

DP2 found more than one target method

2009-05-27 Thread TrentCioran
Hi, First I'm new to DP2, second, I'm trying to generate an interceptor but i'm getting a GeneratorException, the case is, i have a base class ApplicationService: public abstract class ApplicationServiceBaseT, TR : IApplicationServiceT where T : DomainObject where TR :

Re: Using Component.Scheduler in Monorail produces random job failures

2009-05-27 Thread John Simons
Hi Jason, I use the Scheduler with Monorail and I'm not experiencing any problems. The difference is that I start my Scheduler using the Startable Facility (http://www.castleproject.org/container/facilities/trunk/startable/index.html), have a look at the doco. Not sure why it would be failing

Re: Is AR just for prototyping

2009-05-27 Thread Tigraine
Hi, I just completed a little rundown on both AR and NH so it might be of interest. It's by no means a comprehensive guide and until now I have only used naked NH with XML, so the post is mostly about my latest experiments:

Why use ActiveRecord For LINQ??

2009-05-27 Thread James Curran
I'm using Monorail/Windsor but not ActiveRecord. For my data access, I'm using LINQ directly. It seemed to me the LINQ and AR do essentially the same thing. Lately, I've been hearing a lot about ActiveRecord For LINQ on this (actually the Devel) mailing list. This raises some questions

Re: Using Component.Scheduler in Monorail produces random job failures

2009-05-27 Thread jsmorris
@John I am assuming you configured it something like this (since I didn't see that the DefaultScheduler implemented IStartable) components component id=Core.Scheduling.Scheduler service=Castle.Components.Scheduler.IScheduler, Castle.Components.Scheduler

Re: Why use ActiveRecord For LINQ??

2009-05-27 Thread Markus Zywitza
Wrong question, wrong answer... It's neither Linq2SQL nor Linq2objects. L2SQL is not only LINQ but a LINQ provider on top of MS mapping wizards. LINQ2AR is a wrapper around LINQ2NH (or NHLinq), which are LINQ providers for NHibernate. In the end, it means that you can use ActiveRecord with the

Re: Why use ActiveRecord For LINQ??

2009-05-27 Thread Alex Henderson
Wrong answer, that's a bit harsh :) - I was just trying to clarify what they were referring to as Linq (because it obviously wasn't the blanket concept of a language integrated query) - I wasn't attempting to answer the question... I have actually seen the odd developer using Linq for objects

Re: Why use ActiveRecord For LINQ??

2009-05-27 Thread James Curran
But I think that changes the terminology more than the underlying question. We have the options: 1) AR - NH - MSSQL (plus others, which we'll ignore for now) 2) AR - LINQ - NH - MSSQL, et al. 3) LINQ - MSSQL What are the pro cons of each option. One con of (3) is that it's primarily

Re: Using Component.Scheduler in Monorail produces random job failures

2009-05-27 Thread John Simons
nope, here is what my config looks like: component id=scheduler.starter type=DFAT.SWAT.WCF.Services.SchedulerStarter, DFAT.SWAT.WCF service=Castle.Core.IStartable, Castle.Core / And the implementation of SchedulerStarter: (Note: I've created a IJobSpec interface to

Re: Why use ActiveRecord For LINQ??

2009-05-27 Thread John Simons
Another con of (3) is LinqToSql is dead (http://ayende.com/Blog/archive/2008/10/31/microsoft-kills-linq-to-sql.aspx) From: James Curran james.cur...@gmail.com To: castle-project-users@googlegroups.com Sent: Thursday, 28 May, 2009 2:38:14 PM Subject: Re: Why

Re: DP2 found more than one target method

2009-05-27 Thread Ken Egozi
public virtual Location Save(Locationinstance) should be public *override* Location Save(Locationinstance) right? On Thu, May 28, 2009 at 12:06 AM, TrentCioran trentcio...@gmail.com wrote: Hi, First I'm new to DP2, second, I'm trying to generate an interceptor but i'm getting a