2

I have a problem .I want to use version in NHibernate. This is work when I write below code but I want to use timestamp instead of int .

[Class(Table="COMMENTS")]
public class Comment {
   private int version;
   [Versioning]
   public virtual int Version {
      get { return version; }
      set { version = value; } 
  }
}
<class name="Comment" table="COMMENTS">
   <id ... ></id>
   <version name="Version" column="VERSION" />
   ...
</class>

when I changed type of property display this error.

InnerException: {"Version Property must be int"} System.Exception

please help me

mxmissile
  • 11,464
  • 3
  • 53
  • 79
Soheila Tarighi
  • 487
  • 4
  • 15

0 Answers0