Good candidate to "Versioning in SQL Server with rowversion" in NH-Forge
"How to" wikihttp://nhforge.org/wikis/howtonh/default.aspx

2009/2/12 Jan S <[email protected]>

>
> Perfect, it works.
> Thx for the help, much appreciated, :-)
>
> regards,
> Jan
>
> On Feb 9, 7:24 pm, Graham Bunce <[email protected]> wrote:
> > Yes there is, Look for the "Version" element in the hbm, e.g.
> >
> > <version name="Version" column="Version" type="binary" unsaved-
> > value="null" generated="always"/>
> >
> > This maps to a C# byte[] property in the class called "Version"
> >
> > e.g.
> >
> >         public virtual byte[] Version
> >         {
> >             get { return _version; }
> >             set { _version = value; }
> >         }
> >
> > and a SQL column such as "[Version] [timestamp] NOT NULL"
> >
>


-- 
Fabio Maulo

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