开发者

Fluent NHibernate FluentNHibernate.Mapping.Builders Namespace

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?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜