NHibernate.Mapping.Attributes.IdAttribute can not recognize Type of the member it's attached to?

36 views
Skip to first unread message

Alexey Pelykh

unread,
Feb 20, 2012, 8:49:26 AM2/20/12
to NHibernate Contrib - Development Group
This code generates exception that type was not specified:
[Id(0, Column = "_id")]
[Generator(1, Class = "native")]
public long Id { ... }

This does not:
[Id(0, Column = "_id", TypeType = typeof(long))]
[Generator(1, Class = "native")]
public long Id { ... }

Why? Properties determine their types quite fine..
Reply all
Reply to author
Forward
0 new messages