Fluent NHibernate no data being returned

Posted by czuroski on Stack Overflow See other posts from Stack Overflow or by czuroski
Published on 2010-05-21T12:44:21Z Indexed on 2010/05/21 13:40 UTC
Read the original article Hit count: 153

Hello, I have been successfully using NHibernate, but now I am trying to move to Fluent NHibernate. I have created all of my mapping files and set up my session manager to use a Fluent Configuration. I then run my application and it runs successfully, but no data is returned.
There are no errors or any indication that there is a problem, but nothing runs.

when using NHibernate, if I don't set my hbm xml files as an embedded resource, this same thing happens. This makes me wonder what I have to set my Map classes to. Right now, they are just set to Compile, and they are compiled into the dll, which I can see by disassembling it.

Does anyone have any thoughts as to what may be happening here?

Thanks

private ISessionFactory GetSessionFactory()
        {
            return Fluently.Configure()
                .Database(
                    IfxOdbcConfiguration
                        .Informix1000
                        .ConnectionString("Provider=Ifxoledbc.2;Password=mypass;Persist Security Info=True;User ID=myuser;Data Source=mysource")
                        .Dialect<InformixDialect1000>()
                        .ProxyFactoryFactory<ProxyFactoryFactory>()
                        .Driver<OleDbDriver>()
                        .ShowSql()
                    )
                    .Mappings(
                        m => m.FluentMappings
                            .AddFromAssemblyOf<cmCase>()
                            .AddFromAssemblyOf<attorney>()
                            .AddFromAssemblyOf<creditor>()
                            .AddFromAssemblyOf<party>()
                            .AddFromAssemblyOf<person>()
                            .AddFromAssemblyOf<sardbk>()
                            .AddFromAssemblyOf<schedule>()
                        //x => x.FluentMappings.AddFromAssembly(System.Reflection.Assembly.GetExecutingAssembly())
                        //.ExportTo("C:\\mappings")
                    )

                .BuildSessionFactory();
        }

© Stack Overflow or respective owner

Related posts about fluent-nhibernate

Related posts about nhibernate