simmotech wrote:
Otis wrote:
Hmmm, so I'm looking at an interface change 2 days after release?
I must say I'm not happy about this after more than 2 months of beta testing.
But!
Isn't there another solution possible?
Namely 2 protected virtual methods which serialize / deserialize the owned data, and are called from SerializeOwnedData and DeserializeOwnedData ?
All the developer wants is serialize its own data. in this particular case it might be entities, but it also might be other data.
I still don't like it to add this after a release, but if it otherwise makes things impossible, there might be no other choice.
Don't be unhappy, the existing code does exactly what it says on the tin.
It isn't a breaking change or even a bugfix, its just a suggested interface change to allow _additional _functionality. It won't break any existing code as far as I can see.
Heh
It's not that, it's that if a user now wants to add this, s/he has to have a version of a given date. This always gives problems with missing method exceptions and what not where one person in the team hasn't updated to a particular version etc.
SerializeOwnedData/DeserializeOwnedData are already protected virtual and will allow the developer to serialize their own owned data. The problem is they aren't being called because the collection is deemed to be 'not-populated' by virtue of the fact that Count == 0.
In this particular requirement, Count == 0 but there is data to be serialized. By adding the suggested additional method the test for 'populated' can then be overridden by the developer for just this scenario.
Cheers
Simon
I might missed a line somewhere, because when I track the code I end up in the serialization routine WriteCollection for every collection if HasPopulatedMemberEntityCollections returns true. There are aren't any filled, it will call the base method, so if that one returns true, it will always return true.
So I dont see another check for a 0 count.