You'd have to change your mapping so that NH knew to use the anonymous property (the property accessor would be set to "backfield") as the second is not using the warehouseList you've created but instead is telling .NET create the backing variable for you and hide it behind the scenes.
That's how .NET works and is nothing to do with NH. If you did this then you'd still need to initialise the property - usually I do it in the constructor - e.g. "this.WarehouseList = new HashedSet()" -- 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.
