mapper.IsPersistentProperty((mi, declared) => ....); is your friend... there is unfortunately not any generic "Exclude", method.
Search the list for more detailed answers, should you need it, as this has been answered already. Cheers! On 13 Dec, 15:45, "Mauro D." <[email protected]> wrote: > I'm using this code for mapping entities: > > var inspector = (IModelInspector)new SimpleModelInspector(); > ModelMapper mapper = new ModelMapper(inspector); > mapper.Class<Model.Entity>(m => > { > m.Id(x => x.Id, g => g.Generator(Generators.Native)); > m.Table("Entities"); > m.Version(x => x.Version, map => > { map.Column("NHVersion"); }); > m.Property(x => x.Data, map => > map.Type<NHibernate.Type.BinaryBlobType>()); > }); > > I want to be able to exclude a single property from the mapping. > There's a simple method with this mapping usage or I have to change > style and create my personal inspector inheriting from a base one? > > Thanks -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
