"The name 'WithTable' does not exist in the current context" using Fluent NHibernate
- by Byron Sommardahl
Might be a really easy problem to fix, but it the solution is eluding me! I'm using Fluent NHibernate 1.0 RTM (and using NHibernate bins that ships with it). I'm trying to map my entities and cannot use the WithTable() method. It's not available in Intelligence and VS doesn't suggest any namespaces to reference. Here's my code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GeoCodeThe.Net.Domain.Entities;
using FluentNHibernate.Mapping;
namespace GeoCodeThe.Net.Domain.Mappings
{
class CategoryMap: ClassMap<ICategory>
{
public CategoryMap()
{
WithTable("Categories"); // <----- Compile error: The name 'WithTable' does not exist in the current context
Id(x => x.Id);
Map(x => x.Name);
Map(x => x.Tags);
}
}
My bin folder has:
Antlr3.Runtime.dll
Castle.Core.dll
Castle.DynamicProxy2.dll
FluentNHibernate.dll
Iesi.Collections.dll
log4net.dll
NHibernate.ByteCode.Castle.dll
NHibernate.dll
FluentNHibernate.pdb
Castle.Core.xml
Castle.DynamicProxy2.xml
FluentNHibernate.xml
Iesi.Collections.xml
log4net.xml
NHibernate.ByteCode.Castle.xml
NHibernate.xml
Any clue what I'm missing? Let me know if you need any more clarification.