If NH does unnecessary updates, it is mostly due to implicit changes
within the entity. The properties must always return the exact value
that has been set by NH, if it is a collection, the entity must return
the same instance as set by NH, unless NH treats it as a change and
updates the database.
I never saw any issues with {get; set;} (which does not mean that
there aren't.)
Your code looks fine to me, but I don't know Fluent much. Is this
really the full code to reproduce the problem? You didn't leave
anything away because you thought it is irrelevant? For instance a
property getter or setter implementation?
On 22 Jul., 16:24, Fabio Maulo <
fabioma...@gmail.com> wrote:
> for autoproperties and access to field you can useaccess="backfield"
>
> 2009/7/22 Markus Zywitza <
markus.zywi...@gmail.com>
>
>
>
> > Can you try with a backing field for Categories initialized with a
> > List<..>-instance?
>
> > I had strange issues before with autoproperties on collections.
>
> > -Markus
>
> > 2009/7/21 steves <
steve.side...@gmail.com>