You can try this: ... .WithConvention(convention => { convention.ForAttribute<UnmappableAttribute> (UnmappableAttribute.RemoveMapping); })
... public class UnmappableAttribute : Attribute { public static void RemoveMapping(UnmappableAttribute attribute, IProperty property) { property.AddAlteration(_RemoveMapping); } private static void _RemoveMapping(XmlElement element) { if (element == null) return; if (element.ParentNode == null) return; element.ParentNode.RemoveChild(element); } } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---