views:

189

answers:

1

I've seen that ADO.NET 2.0 is compatible with Mono but I can't found any example of that in the web ?

+1  A: 

Here is ADO.NET example with MySQL database. If you are using MonoDevelop, then just add reference to MySQL connector dll. There are also some examples about how to use the connector.

DbLinq should be compatible with mono 2.4 I would say, however it's still in preview release, so it's not ready for production use.

Tomi
I don't think it's ADO.NET because we don't have the layer of persistance.
ADO.NET is not a layer of persistence nor ORM. From wiki page: "ADO.NET is a set of computer software components that can be used by programmers to access data and data services. ... It is commonly used by programmers to access and modify data stored in relational database systems ...". From MySQL .Net connector page: "... It implements the required ADO.NET interfaces and integrates into ADO.NET aware tools. ... Connector/NET is a fully managed ADO.NET driver written in 100% pure C#."
Tomi
As I said earlier, you are probably looking for Linq to SQL or Entity Framework implementations. Former is in mono world known as DbLinq (currently in preview release since mono 2.6) and latter is not implemented.
Tomi
I think I use it unwittingly ;-) It's sure I want to employ Linq to SQL but unfortunately in Ubuntu synaptic has just the mono 2.4 version :-(