ODBC method in Microsoft.Practices.EnterpriseLibrary.Data
Hello,
I have a requirement of odbc connection method in Microsoft.Practices.EnterpriseLibrary.Data assembly(version 5). Whether it is available in Microsoft.Practices.EnterpriseLibrary ?
Or it there any suitable alternatives for ODBC in Microsoft.Practices.EnterpriseLibrary ?
Please help me.
Re: ODBC method in Microsoft.Practices.EnterpriseLibrary.Data
Your question is a bit vague. Are you saying that you have an existing DSN that you need the Enterprise Library to connect to? If not, please try to provide a FULL and CLEAR description of the problem.
Re: ODBC method in Microsoft.Practices.EnterpriseLibrary.Data
Quote:
Originally Posted by
jmcilhinney
Are you saying that you have an existing DSN that you need the Enterprise Library to connect to?
Yes I want to connect Microsoft Access using Enterprise Library. For that I need ODBC method.
Re: ODBC method in Microsoft.Practices.EnterpriseLibrary.Data
Then you would create a Database object, passing the connection string and an OdbcFactory to the constructor.
https://msdn.microsoft.com/en-us/lib...pandp.60).aspx
I have to wonder why you're still using the Enterprise Library for data access though. It's rather out of date now.
Re: ODBC method in Microsoft.Practices.EnterpriseLibrary.Data
Re: ODBC method in Microsoft.Practices.EnterpriseLibrary.Data
ODBC can be achieved by "GenericDatabase" Class of Microsoft.Practices.EnterpriseLibrary.Data
Thank you all for your replies.