Hi,

You can use this one in default config file  hibernate.cfg.xml  :
<?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="connection.driver_class">NHibernate.Driver.SybaseAseClientDriver</property>
    <property name="connection.connection_string">Data 
Source=yourhostname;Port=5000;Database=yourdatabase;UID=userlogin;PWD=userpasswd</property>
    <property 
name="dialect">NHibernate.Dialect.SybaseASE15Dialect</property>
  </session-factory>
</hibernate-configuration>

Then in code :
ISessionFactory sf = new Configuration().Configure().BuildSessionFactory(); 
// will use default nhibernate config file:  hibernate.cfg.xml


Rgds.

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fluent-nhibernate.
For more options, visit https://groups.google.com/d/optout.

Reply via email to