Creating classes in C# from Informix tables - c#

I know that there is POCO Generator but that's for SQL Server and I need it for an Informix database.
Can you point me to any alternative?
BTW I am using an Informix data server driver in C# to connect to an Informix server.

You could use LINQ to DB, which support couples of databases such as Informix:
Supported databases:
DB2 (LUW, z/OS)
Firebird
Informix
Microsoft Access
Microsoft Sql Azure
Microsoft Sql Server
Microsoft SqlCe
MySql
Oracle
PostgreSQL
SQLite
SAP HANA
Sybase ASE
I hope to be helpful for you:)

Related

MyGeneration MYSQL connection error

Iam using MyGeneration Doodads to connect to MySql DB
i connect using microsoft ole db provider for odbc drivers but get the following error
[System.ArgumentException] - The .Net Framework Data Provider for
OLEDB (System.Data.OleDb) does not support the Microsoft OLE DB
Provider for ODBC Drivers (MSDASQL). Use the .Net Framework Data
Provider for ODBC (System.Data.Odbc).
how can i solve this problem

Is Nhibernate using ADO.NET for connecting to database?

What is the data provider for nhibernate? Is it ADO.NET?
Yes it uses ADO.NET internally.
Take a look at http://community.jboss.org/wiki/DatabasesSupportedByNHibernate.
It shows what tools/drivers are used to connect to different databases. for example:
Oracle 9i and 10g are supported, both using Microsoft driver (System.Data.OracleClient) and using Oracle driver (Oracle.Data.OracleClient).
Or:
To work with Firebird, install the latest Firebird .NET Data Provider.
I'm not sure whether it uses ADO.Net for SQL Server connections under the hood, But it seems that it doesn't use ADO.Net for other database systems.

Sync interbase database tables to SQL Server Database using .Net

I need to sync SQL server database with the Interbase DB. Interbase is the live DB and main application works on this. Now customer wants to create an SQL server database and sync it with the live interbase database once everyday. I want to create an application, which can be scheduled to compare both Interbase and SQL Server databases and merge the SQL Server with all changes from the Interbase Server. Is there any way to do this using c# .Net?
Have a look at the Microsoft Sync framework - it's designed to do what you want, though not sure if there's a plug in for Interbase.

Retrieve data from WCF to store on SQL Server CE (TableAdapter)

I have a Compact Framework 2.0 app that consume a WCF service. The data that retrieve from the service will be store on a SQL Server 2005 CE.
The SQL Server CE database has his own tables. I use a TableAdapter to access SQL Server CE and Insert and Select statement to store and retrieve data.
Is there a better way to do it?
You could consider sync framework
http://blogs.msdn.com/sync/archive/2009/06/04/announcing-sync-framework-2-0-ctp2.aspx

How to choose an Oracle provider for .Net application?

I am trying to figure out what is the best way to connect an (existing) ASP.Net application to an Oracle database to read its dictionary information.
There are simply too many possibilities:
MS Data Provider for Oracle (requires 8.1.7, namespace System.Data.OracleClient)
Oracle Data Provider for .NET (requires 9.2, namespace Oracle.DataAccess)
Oracle Provider for OLE DB
MSDASQL and ODBC
As my current app uses MSSQL server, further options would be:
Linked Server, access via server..user.object
Linked Server via OPENROWSET
There are a couple of questions on similar topics on SO, but only some have accepted answers.
What's your experience with each of the drivers? What are their pros and cons?
Of course Oracle is recommending ODP.Net. Is the requirement of version 9.2 (or higher) a problem today?
I too recommend ODP.NET. Choose the latest provider (http://www.oracle.com/technology/tech/windows/odpnet/index.html). It can connect with an Oracle 9.2 database or a newer release of the database.
The MS Data Provider for Oracle is very limited. You can't work with arrays for example and user defined types. And why would Microsoft provide good support for connecting to Oracle?
You can also check out the provider of devart: http://www.devart.com/dotconnect/oracle/ . It supports the entity framework.
Dump OLE DB and ODBC options, if you have direct data access provider there is no need in using OLE DB or ODBC.
I recommend Oracle Data Provider for .NET.
Microsoft just announced it is deprecating System.Data.OracleClient.
I think that leaves you with a few choices (at least):
ODP.NET (free, from Oracle)
DevArt
DataDirect
DevArt also has a LINQ to Oracle implementation which could be interesting to you.

Categories