You have one object instance that is a child of two different objects?
If so, that isn't a supported scenario in general - I'm only surprised that it worked ever - I would have expected lots of issues.
Interesting.
So in CSLA 3.0 you implemented two properties, but a single
backing field? If you had two backing fields in 3.0 it would have called
CopyState() twice there too.
And in 3.5 you are using the managed backing field approach and
thus have two properties, now effectively with two backing fields.
Yes, I see where that would cause the double call to
CopyState().
I could fix this in CSLA with some effort, but I suspect this is
an edge case – I wonder if anyone else does this at all?
But you could fix this in 3.5 by having a single managed backing
field. Basically a single private property that is managed, and have your other
two properties delegate to that property (so they aren’t managed
properties at all). That way you’d have the same behavior (and
implementation) as you did in 3.0.
Rocky
So in CSLA 3.0 you implemented two properties, but a single backing field?
And in 3.5 you are using the managed backing field approach and thus have two properties, now effectively with two backing fields.
I could fix this in CSLA with some effort...
..., but I suspect this is an edge case – I wonder if anyone else does this at all?
Copyright (c) Marimer LLC