I'm using NHibernate.Mapping.Attributes and I noticed that on my id
attributes, if I don't specify Type or TypeType, the serializer throws
an error.

Is there a reason why it doesn't infer the type from the c# property.

Example:

<code>
    [Class]
    public class Option
    {
        [Id(0, Column = "OptionId")]
        [Generator(1, Class = "native")]
        public virtual int OptionId { get; set; }
    }
</code>

Error:
NHibernate.MappingException: No type name specified.


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