Access strategy "readonly" is missing (access="readonly")

Maciej Szczepański's Avatar

Maciej Szczepański

30 Mar, 2010 09:31 PM via web

Currently this strategy cannot be configured. Methods ReadOnlyPropertyXXX cannot be used as they produce access="nosetter.xxx"

access="readonly" is used for properties that only have a getter and no backing field e.g.:

public bool HasItems { get {return Items.Count > 0;}}

  1. 2 Posted by Maciej Szczepański on 30 Mar, 2010 09:52 PM

    Maciej Szczepański's Avatar

    As a workaround Access.Using(typeof(NHibernate.Properties.ReadOnlyAccessor)) can be used.

  2. Support Staff 3 Posted by Paul Batum on 22 Aug, 2010 04:40 AM

    Paul Batum's Avatar

    Lee Henson submitted a fix for this, its in my repository now and should be in the official trunk before long.

  3. Paul Batum resolved this discussion on 22 Aug, 2010 04:40 AM.

Comments are currently closed for this discussion. You can start a new one.