views:

295

answers:

2

Is it possible "in anyway" that I can use Linq to SQl on a Mono project? If it's actually .net port then if I import the System.data.Linq and the DBML that generated in VS, will it work?

THanks!

+3  A: 

Mono 2.6 comes with DbLinq. It's not user friendly though and you have to go through some pain before you can make it work.

vava
it only support mysql, postgres and oracle, is there any other alternative that can support mssql?
DucDigital
@DucDigital, I believe they do support MS SQL, they do have tests for that use case: http://groups.google.com/group/dblinq/web/unit-tests?pli=1 But I'm not sure how mature that feature is, most likely not so much.
vava
+2  A: 

Since Mono 2.6 you can use DbLinq however it's currently only in preview and beta is planned in Mono 2.8 release. Some queries works there (for example everything from NerdDinner MVC tutorial) but complex stuff won't work. You can read more about current status of DbLinq here.

Tomi