Hi James,

Thanks for the response.

I initially called the property Version and it was completely ignored.
I figured since Version was a SQL server keyword, it was ignored. That
is the reason I changed the property to RowVersion. is there anything
else I need to do besides using the property name Version?

Thanks.





On Feb 2, 6:55 pm, James Gregory <[email protected]> wrote:
> 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%2bunsubscr­[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