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
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
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;