Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
add to question ; added 3 characters in body
Source Link
cgreeno
  • 32.5k
  • 7
  • 70
  • 87

Current code in my convention:

    public void Apply(FluentNHibernate.Conventions.Instances.IVersionInstance instance)
    {
        instance.Column("RowVersion");
        instance.Not.Nullable();
        instance.UnsavedValue("0");
        instance.Default(1);
    }

This doesn't render the RowVersion as a version column. It treats RowVersion as just another column.

Any ideas on what I'm missingSo my question is how do you add Row Version Concurrency using Fluent Nhibernate?

TIA

Current code in my convention:

    public void Apply(FluentNHibernate.Conventions.Instances.IVersionInstance instance)
    {
        instance.Column("RowVersion");
        instance.Not.Nullable();
        instance.UnsavedValue("0");
        instance.Default(1);
    }

This doesn't render the RowVersion as a version column. It treats RowVersion as just another column.

Any ideas on what I'm missing?

TIA

Current code in my convention:

    public void Apply(FluentNHibernate.Conventions.Instances.IVersionInstance instance)
    {
        instance.Column("RowVersion");
        instance.Not.Nullable();
        instance.UnsavedValue("0");
        instance.Default(1);
    }

This doesn't render the RowVersion as a version column. It treats RowVersion as just another column.

So my question is how do you add Row Version Concurrency using Fluent Nhibernate?

Source Link
RT.
  • 455
  • 2
  • 10
  • 28

fluent nhibernate automap version column

Current code in my convention:

    public void Apply(FluentNHibernate.Conventions.Instances.IVersionInstance instance)
    {
        instance.Column("RowVersion");
        instance.Not.Nullable();
        instance.UnsavedValue("0");
        instance.Default(1);
    }

This doesn't render the RowVersion as a version column. It treats RowVersion as just another column.

Any ideas on what I'm missing?

TIA