Actually, there's a historical reason for this: DbConnection was introduced in .NET 2. I guess MS wanted to keep the breaking changes separate...
Diego On Thu, Jun 10, 2010 at 14:28, Fabio Maulo <[email protected]> wrote: > ah... > btw big kudo to ADO.NET team perhaps it was the best team in MS for : > program to interface not to implementation > > > On Thu, Jun 10, 2010 at 2:26 PM, Fabio Maulo <[email protected]> wrote: > >> DbConnection is used mostly for Schema-matters. >> IDbConnection for all others functions. >> The reason ? >> We should ask to MS ;) >> >> On Wed, Jun 9, 2010 at 4: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. >>> >>> >> >> >> -- >> 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]<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.
