Your version needs to be called Version or Timestamp for the automapping to
recognise it. Otherwise, use an
override<http://wiki.fluentnhibernate.org/Auto_mapping#Overrides>to
specify the version mapping manually.

On Tue, Feb 2, 2010 at 10:39 PM, RT <[email protected]> wrote:

> Current code:
>
>    public class MyVersionConvention : IVersionConvention
>    {
>
>        public void Apply
> (FluentNHibernate.Conventions.Instances.IVersionInstance instance)
>        {
>            instance.Column("RowVersion");
>            instance.Not.Nullable();
>            instance.UnsavedValue("0");
>            instance.Default(1);
>        }
>
>    }
>
> However, the RowVersion is being treated as a regular column and not a
> version column. The RowVersion property is defined as int in the base
> class.
>
> What else do I need to do make it a version column?
>
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Fluent NHibernate" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<fluent-nhibernate%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/fluent-nhibernate?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" 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/fluent-nhibernate?hl=en.

Reply via email to