I have write sample console application :
log4net.Config.XmlConfigurator.Configure();
Configuration cfg = new Configuration().Configure();
ISessionFactory _factory;
ISession _session;
_factory = cfg.BuildSessionFactory();
_session = _factory.OpenSession();
var list = _session.QueryOver<Anagrafica>()
.OrderBy(m => m.RagioneSociale).Asc
.List();
with the same class definition and mapping, i have rewrite the cfg
for removing the unhaddins config
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property
name="connection.provider">NHibernate.Connection.DriverConnectionProvider</
property>
<property name="dialect">NHibernate.Dialect.MsSql2008Dialect</
property>
<property
name="connection.driver_class">NHibernate.Driver.SqlClientDriver</
property>
<property name="connection.connection_string">data source=*****
\SQLEXPRESS;Integrated Security=SSPI;database=GestioneInsoluti</
property>
<property name="default_schema">dbo</property>
<property
name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory,
NHibernate.ByteCode.LinFu</property>
<property name="show_sql">true</property>
<property name="generate_statistics">true</property>
<mapping assembly="TestQueryOver"/>
</session-factory>
</hibernate-configuration>
and the query work fine.....
Stefano
On 9 Dic, 19:02, Stefano Paparesta <[email protected]>
wrote:
> In this project i use uNhaddins, this can cause this problem ??
> Stefano
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.