Can anyone explain the difference between these two ?

This works:
[HasMany(Table = "MyDictionary", Element="Value", ElementType=typeof
(bool), ColumnKey = "ParentID", Index="Idx",
RelationType=RelationType.Map, Cascade =
ManyRelationCascadeEnum.None)]
public IDictionary<int, bool> Properties
{
 ...
}

but if I do this:

public enum PropertyType : int
{
 ...
}

[HasMany(Table = "MyDictionary", Element="Value", ElementType=typeof
(bool), ColumnKey = "ParentID", Index="Idx",
RelationType=RelationType.Map, Cascade =
ManyRelationCascadeEnum.None)]
public IDictionary<PropertyType, bool> Properties
{
 ...
}


I get the exception:

NHibernate.MappingException: Could not determine type for:
PropertyType, for columns: NHibernate.Mapping.Column(Idx)

this doesn't make any sense as if I do

[Property]
public PropertyType PropertyTypeTest
{
 ...
}

it is able to determine the type.

How do I manipulate ActiveRecord to create the correct mapping ?

Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to