Assuming the interface and the base class have similar signatures, it should
dead simple to wrap it in your own "proxy"...

On Wed, Jun 9, 2010 at 2:01 PM, Jackie G. <[email protected]> wrote:

> So it seems I can't access SQLAnywhere 9 because the ASAConnection(Old
> class) implements the IDbConnection interface, while the newer (10-11)
> SAConnection extends the DBConnection class.
>
> Why is this and is there anyway around it?
>
> Sorry if this is a repost thought it was a new subject.
>
> Here is my .conf for the record...
>
> <?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.ASA10ClientDriver
>    </property>
>    <property name="dialect">NHibernate.Dialect.SybaseAnywhereDialect</
> property>
>    <property name="connection.connection_string">
>      UID=dba;p...@#$%;DBF=C:\Users\Jackie\Documents\LocalTF.db
>    </property>
>    <property name="show_sql">
>      true
>    </property>
>    <property name="proxyfactory.factory_class">
>      NHibernate.ByteCode.Spring.ProxyFactoryFactory,
> NHibernate.ByteCode.Spring
>    </property>
>  </session-factory>
> </hibernate-configuration>
>
> --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>

-- 
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.

Reply via email to