C# Fluent NHibernate异常:表X中的关联引用了未映射的类:System.String

C# Fluent NHibernate异常:表X中的关联引用了未映射的类:System.String,c#,nhibernate,oracle11g,fluent-nhibernate,C#,Nhibernate,Oracle11g,Fluent Nhibernate,我正在尝试将11g中的oracle表映射到此类: public class AdminTest { public virtual int Id { get; set; } public virtual string PlayerName { get; set; } public virtual string ClassYear { get; set; } public virtual char IsMinor { get; set; } public vi

我正在尝试将11g中的oracle表映射到此类:

public class AdminTest
{
    public virtual int Id { get; set; }
    public virtual string PlayerName { get; set; }
    public virtual string ClassYear { get; set; }
    public virtual char IsMinor { get; set; }
    public virtual char HasPaid { get; set; }
    public virtual string Sport { get; set; }
    public virtual string YearRegistered{ get; set; }
    public virtual string SemesterChooseSport { get; set; }
    public virtual char IsCaptain { get; set; }
    public virtual string PlayerBuUsername { get; set; }
}
这是一个流畅的映射:

public class AdminTestMap: ClassMap<AdminTest>
    {
        public AdminTestMap()
        {
            //id is the primary key of the table
            Table("tbl_117_admintest");
            Id(x => x.Id).GeneratedBy.Sequence("seq_117_admintest");
            References(x=>x.PlayerName).Column("player_name");
            References(x=>x.ClassYear).Column("class_year");
            References(x=>x.IsMinor).Column("isMinor");
            References(x=>x.HasPaid).Column("hasPaid");
            References(x=>x.Sport).Column("sport");
            References(x=>x.YearRegistered).Column("year_registered");
            References(x=>x.SemesterChooseSport).Column("semester_choose_sport");
            References(x=>x.IsCaptain).Column("isCaptain");
            References(x=>x.PlayerBuUsername).Column("playerBUUsername");
        }
    }
公共类AdminTestMap:ClassMap

我还没有幸运地消除上面的异常:tbl_117_admintest表中的关联引用了一个未映射的类:System.String。我正在引用VS13中的Oracle.DataAccess.dll。
任何指示都将不胜感激

我没有经常使用fluent nhibernate,但提示似乎是系统告诉您找不到地图的类

您永远不会映射字符串类。我认为问题在于你正在使用


引用(x=>x.PlayerName)来映射所有属性,请尝试改用map(x=>x.PlayerName)。

这似乎解决了我收到错误消息的原因。现在我遇到以下异常:{“尝试加载Oracle客户端库时引发了BadImageFormatException。在安装了32位Oracle客户端组件的情况下以64位模式运行时会出现此问题。”}我必须问另一个问题
        var cfg = OracleClientConfiguration.Oracle10
            .ConnectionString(c =>
                c.Is("connstr"));

        return Fluently.Configure()
                .Database(cfg)
                .Mappings(m => m.FluentMappings.AddFromAssemblyOf<Program>().ExportTo(@".\"))
                .ExposeConfiguration(BuildSchema)
        .BuildSessionFactory();
    }