Why is Fluent NHibernate with LINQ returning an empty list (with Oracle database)? -
i'm using fluent nhibernate (the nh3 build - #694) , linq connect oracle 11 database. however, don't seem able data database. connection seems working, as, if change login info, throws error.
i'm using following code:
// setup. oracleclientconfiguration oracleclientconfiguration = oracleclientconfiguration.oracle10 .showsql() .connectionstring(connectionstring); _sessionfactory = fluently.configure() .database(oracleclientconfiguration) .mappings(m => m.fluentmappings .addfromassemblyof<feed>()) .buildsessionfactory(); // query. using (isession session = _sessionfactory.opensession()) { ienumerable<category> categories = session.query<category>().tolist(); // returns empty list. // , on... }
i have map category table, but, no matter put in there, still empty list. also, though use showsql(), i'm not seeing nhibernate output in vs (2010) window.
i'm using testdriven.net (3.x) run code. no errors thrown , assert.notempty (xunit) on returned collection fails (obviously).
i'm stuck, code running , returning nothing , can't diagnostic info. tried getting nhibernate write log4net (traceappender), but, again, nothing.
i'd appreciate pointers - if it's way of getting thing tell me it's trying do.
turns out 1 of classes used in mapping marked "internal".
Comments
Post a Comment