I need help, I can not apply Cascade.Update // ForeignKeyCascadeOnDelete only configure () but not cascade.save
help setting cascade.saveupdate here I leave my entities and mapping public class Profesor { public virtual string id { get; set; } public virtual string name { get; set; } public virtual IList<Clase> clases { get; set; } public Profesor() { clases = new List<Clase>(); } } -------------- public class Clase { public virtual string id { get; set; } public virtual string name { get; set; } public virtual Entidades.Profesor Profesor { get; set; } } ------------MAPPING public class ProfesorMap : ClassMap<Entidades.Profesor> { ProfesorMap() { Id(u => u.id); Map(u => u.name).Nullable(); HasMany(u => u.clases) .KeyColumn("proID") .Inverse() .ForeignKeyCascadeOnDelete() .Cascade.All(); } } ------------- public class ClaseMap : ClassMap<Entidades.Clase> { ClaseMap() { Id(c => c.id); Map(c => c.name); References(x => x.Profesor) .Column("proID") .Not.Nullable(); } } -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To unsubscribe from this group and stop receiving emails from it, send an email to fluent-nhibernate+unsubscr...@googlegroups.com. To post to this group, send email to fluent-nhibernate@googlegroups.com. Visit this group at http://groups.google.com/group/fluent-nhibernate. For more options, visit https://groups.google.com/d/optout.