Re: Using session per conversation with ActiveRecord

2010-10-20 Thread Alessandro C.
Markus, All is clear but the use of the method Execute. Suppose that I have a static helper class called PlanningProcess, this class has a method called GoAhed, inside this method there are controls, calculations and entity updates. Now, that I have a global session, I call from my form as

Two Ajax proxy questions

2010-10-20 Thread Tomek Pluskiewicz
Hi I have two questions about Ajax proxies. 1. Why are they synchronous when no callback is given? There is no callback when one uses JS generation, but still such making such call async could be desired... 2. Why do those proxies call controller with that additional underscore query string?

Re: version 2.1.1

2010-10-20 Thread Michael Maddox
Are you referring to Castle ActiveRecord? The 2.1.2 release is the latest and it is available here: http://www.castleproject.org/castle/projects.html Which assembly exactly are you looking at the version number for? -Michael On Tue, Oct 19, 2010 at 1:18 AM, raghavsri raghavendra...@gmail.com

error cascade delete

2010-10-20 Thread oreo
Hello. Sorry for my English. I have a one to many, and I want to delete the parent when the child is deleted. When I try to delete a parent get the following error: DELETE statement conflicted with the REFERENCE constraint FK58D3BC2BC5838F81. The conflict has appeared in the database NHibernate

Re: error cascade delete

2010-10-20 Thread Patrick Steele
If you want the parent (and all children) deleted when a single child is deleted, just call your delete on the parent (instead of calling delete on the child): child.Sistema.Delete(); --- Patrick Steele http://weblogs.asp.net/psteele On Wed, Oct 20, 2010 at 6:59 AM, oreo

Re: error cascade delete

2010-10-20 Thread oreo
I want to delete a parent, and therefore all his children. On 20 oct, 13:35, Patrick Steele patrick.ste...@gmail.com wrote: If you want the parent (and all children) deleted when a single child is deleted, just call your delete on the parent (instead of calling delete on the child):

RE: error cascade delete

2010-10-20 Thread Nicholas Kilian
Why have you set Inverse=True on public virtual IListSuscriptor Suscriptores? -Original Message- From: castle-project-users@googlegroups.com [mailto:castle-project-us...@googlegroups.com] On Behalf Of oreo Sent: 20 October 2010 01:45 PM To: Castle Project Users Subject: Re: error cascade

Re: Using session per conversation with ActiveRecord

2010-10-20 Thread Markus Zywitza
Exactly -Markus 2010/10/20 Alessandro C. cavalieri.alessan...@gmail.com: Markus, All is clear but the use of the method Execute. Suppose that I have a static helper class called PlanningProcess, this class has a method called GoAhed, inside this method there are controls, calculations and

Re: error cascade delete

2010-10-20 Thread oreo
In http://stw.castleproject.org/Active%20Record.Mappings.ashx says: If you need to delete child objects when deleting a parent (e.g. when calling Blog.Delete() should also delete all related Post records from the database), you can specify Inverse=true. I also tried without inverse and does not

Re: error cascade delete

2010-10-20 Thread oreo
whit [BelongsTo(system_id)] public virtual Sistema Sistema { get { return sistema; } set { sistema = value; } } the error is the same On 20 oct, 14:34, Nicholas Kilian nicholaskil...@googlemail.com wrote: The column name you used in your mapping,

RE: error cascade delete

2010-10-20 Thread Nicholas Kilian
Okay, but what should it be? What is the actual table structure? There's definitely a system_id column on table Suscriptor that is a foreign key to something; the CREATE statements for the tables will help us a bit more. -Original Message- From: castle-project-users@googlegroups.com

Re: error cascade delete

2010-10-20 Thread oreo
[ActiveRecord] class Asistema : ActiveRecordBaseAsistema { private int id; private IListSuscriptor suscriptores = new ListSuscriptor(); public Asistema() { } [PrimaryKey] public virtual int Id { get { return id;

Re: error cascade delete

2010-10-20 Thread oreo
Thank you very much. Already understood On 20 oct, 15:06, Nicholas Kilian nicholaskil...@googlemail.com wrote: Sí, Si usted rompe el sis.Delete e inspeccionar los dos objetos, podrás ver: sis de objetos con una lista Suscriptor cero contar, no tiene conocimiento de sulos niños en la

Re: Using session per conversation with ActiveRecord

2010-10-20 Thread Alessandro C.
Ok. Perfect. I wish to thank again you (Markus) and Josè for your support. --Alessandro On 20 Ott, 14:25, Markus Zywitza markus.zywi...@gmail.com wrote: Exactly -Markus 2010/10/20 Alessandro C. cavalieri.alessan...@gmail.com: Markus, All is clear but the use of the method Execute.