<configuration>
<configSections>
<section name="hibernate-configuration"
type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" />
</configSections>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property
name="dialect">NHibernate.Dialect.MsSql2005Dialect</property>
<property name="connection.connection_string">
Server=(local);initial catalog=theDb;Integrated
Security=SSPI
</property>
<property
name="connection.isolation">ReadCommitted</property>
<property name="proxyfactory.factory_class">
NHibernate.ByteCode.LinFu.ProxyFactoryFactory,
NHibernate.ByteCode.LinFu
</property>
</session-factory>
</hibernate-configuration>
<!-- other app specific config follows -->
</configuration>
2009/8/2 Fabio Maulo <[email protected]>
> Righetto, had you read the link of the reference manual ?Again you are
> using a not supported (since NH2.0.0) configuration.
>
> 2009/8/2 mathmax <[email protected]>
>
>>
>> Thank you. I can compile now. But I still have a runtime error: "Could
>> not find the dialect in the configuration"
>> Here is the config file I use:
>>
>> <?xml version="1.0" encoding="utf-8" ?>
>> <configuration>
>> <configSections>
>> <section name="nhibernate"
>> type="System.Configuration.NameValueSectionHandler, System,
>> Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/
>> >
>> </configSections>
>> <nhibernate>
>> <add key="hibernate.connection.provider"
>> value="NHibernate.Connection.DriverConnectionProvider"/>
>> <add key="hibernate.dialect"
>> value="NHibernate.Dialect.MsSql2005Dialect"/>
>> <add key="hibernate.connection.driver_class"
>> value="NHibernate.Driver.SqlClientDriver"/>
>> <add key="hibernate.connection.connection_string"
>> value="Server=server;Database=myDb;uid=sa;pwd=mypassword;"/>
>> </nhibernate>
>> </configuration>
>>
>> Do you have an idea of the problem ?
>> >>
>>
>
>
> --
> Fabio Maulo
>
--
Fabio Maulo
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---