When was the last time you updated your build of FNH? The problem with your
Version member being ignored when on the base class was resolved a few
builds back. You shouldn't have any problems with it if you're on the
latest.

On Thu, Feb 4, 2010 at 2:12 AM, RT <[email protected]> wrote:

> I should've been more specific. If the property is in the derived
> class, it gets generated fine. If the property is in the base class
> (preferred approach), it doesn't.
>
> I can live with this limitation for now though.
>
> Thanks again for your prompt responses.
>
>
> On Feb 3, 10:01 am, James Gregory <[email protected]> wrote:
> > Property name can be Version or Timestamp, case insensitive; and the
> > property type should be int, long, TimeStamp, or byte[].
> >
> >
> >
> > On Wed, Feb 3, 2010 at 2:56 PM, RT <[email protected]> wrote:
> > > 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%[email protected]>
> <fluent-nhibernate%2bunsubscr­[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]<fluent-nhibernate%[email protected]>
> <fluent-nhibernate%2bunsubscr­[email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/fluent-nhibernate?hl=en.- Hide quoted
> text -
> >
> > - Show quoted text -
>
> --
> 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