0

I am using the latest version of Fluent NHibernate (1.2.0.712) retrieved over NuGet. Previously I have used the FluentNHibernate.Mapping.Builders Namespace to create mapping extensions similar to:

 public static class MappingExtensions
{
    public static PropertyBuilder Text(this PropertyBuilder propertyBuilder)
    {
        propertyBuilder.Length(10000);
        return propertyBuilder;
    }

    public static PropertyBuilder Money(this PropertyBuilder propertyBuilder)
    {
        propertyBuilder.CustomType<MoneyUserType>();
        return propertyBuilder;
    }
}

which could be used as such:

Map(x => x.Price).Money();

I know get the error:

Error   1   The type or namespace name 'Builders' does not exist in the namespace 'FluentNHibernate.Mapping' (are you missing an assembly reference?)   

I am referencing the correct assembly. In Reflector and Object Browser I can't find the above namespace but in the source code from GitHub it's there.

Am I missing something obvious?

1 Answer 1

1

This namespace has been moved and some of the functionality has been renamed/modified. This post on google groups may or may not help you with this.

http://groups.google.com/group/fluent-nhibernate/browse_thread/thread/5e751b7d49fbf770

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

1 Comment

Under the branch v1.x in the source code I found PropertyPart which replaces PropertyBuilder.

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.