RE: Self refrence

2010-08-08 Thread Nicholas Kilian
Hi Michael, I haven't found a way to do this through cascades and ended up overriding the Delete method to throw an exception if relationships are found. Regards Nick -Original Message- From: castle-project-users@googlegroups.com [mailto:castle-project-us...@googlegroups.com] On Behalf

How does Castle.ActiveRecord override virtual properties?

2010-08-08 Thread omer katz
In active record to write a model you write: [ActiveRecord(TableName)] public class Model { [Property(SomeField)] public virtual string SomeField { get; set; }; [Property(SomeLazyField), Lazy= true] public virtual string SomeLazyField { get; set; }; } If the field is lazy it must

Re: How does Castle.ActiveRecord override virtual properties?

2010-08-08 Thread Markus Zywitza
Not at all. This doesn't work with NH2.1, only with NH3.0 Alpha. AR uses NH2.1. -Markus 2010/8/8 omer katz o...@cinex.co.il: In active record to write a model you write: [ActiveRecord(TableName)] public class Model {    [Property(SomeField)]    public virtual string SomeField { get; set;