What I want to do is the following:

For each Property there should be a list of possible values
(PropertyValue). And in each PropertySet there should be a Dictionary
like you mentioned:

IDictionary<Property, PropertyValue> Properties;

First I thought about the following:

ICollection<PropertyValue> Properties.

But there should only be one PropertyValue of a particular Property.
For example:

Property: A, B
PropertyValues for Property A: a1, a2, a3
PropertyValues for Property B: b1, b2

A PropertySet is allowed to have a1 and b2 for example, but not a1 and
a2.

The database model would guarantee this.



On 14 Jul., 10:59, Ramon Smits <[email protected]> wrote:
> From your mapping you are trying to do something like the following.
>
> class PropertySet
> {
> int ID;
> string Name;
> IDictionary<Property, PropertyValue> Properties;
>
> }
>
> IMO this doesn't make any sense. You have already mapped property values
> under property so that is already accessible so why this construction? This
> would only make sense when there is not relation between property and
> propertyvalue.
>
> --
> Ramon

-- 
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.

Reply via email to