I'm not sure if you can turn of writing to the filed. Any way, you shouldn't look for property accessors, because these are fields.
On 3 Sep., 15:17, bstack <[email protected]> wrote: > Can you map directly to readonly properties in NHibernate or is it > impossible? e.g. > > public class Entity > { > public readonly int Property1; > public readonly int Property2; > > public Entity(int p1, int p2) > { > this.Property1 = p1; > this.Property2 = p2; > } > > We dont want back-end fields in our entity e.g. private int_property1; > (Too many entities to convert from current format) > > It dosen't look like any of the current PropertyAccessors that exist > can cater for this usage. > It is possible to write my own PropertyAccessor but would this > "readonly" property type entity work with NHibernate? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
