I got it working.
Gave like this:
config.SetProperty("hibernate.connection.provider", "NHibernate.Connection.DriverConnectionProvider"); config.SetProperty("hibernate.dialect", "NHibernate.Dialect.PostgreSQLDialect"); config.SetProperty("hibernate.connection.driver_class", "NHibernate.Driver.NpgsqlDriver"); config.SetProperty("hibernate.connection.connection_string", "SERVER=localhost;DATABASE=postgres;UID=postgres;PWD=urpass;PORT=5432;Encoding=UNICODE"); config.AddAssembly("myassembly");
Thanks,
Dhivya.
|