3

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?

1 Answer 1

1

The VersionStep class only looks for properties that match the names of Version or Timestamp. Your property will have to match that name. Replacing VersionStep to change the naming rules is another option.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.