> --
>
> You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group.
> To post to this group, send email to fluent-n...@googlegroups.com.
> To unsubscribe from this group, send email to fluent-nhibern...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en.
>
>
>
:D
Chris
public class NotPersisted : Attribute
{
}
And put the attibute over the non persisted Property:
public class Product
{
[NotPersisted]
public virtual double PriceQuery {get; set;}
}
Now, to ignore all properties in your code which receive the Attribute
NotPersisted:
model.OverrideAll(p =>
{
p.IgnoreProperties(x =>
x.GetCustomAttributes(typeof(IgnoreProperty), false).Length > 0);
});
I am new using the Fluent Auto Map, but it really works for me! :-)
Cheers,
André
Thanks for this! I noticed that in the documentation and figured I'd
have to go that route, but having a solid example will be a big help -
Thanks!
Chris