linq to sql - How to use DbLinq SqlMetal for MySQL on Mac? -
i'm using mono/monodevelop on mac os, , want example using sqlmetal (dblinq version included mono) linq-to-sql mysql database.
oddly, found many examples sqlite, none mysql. examples found mysql seems refer microsoft's sqlmetal.exe.
i tried arrange sqlmetal command sqlite adapt mysql, have message:
sqlmetal: not load databaseconnectiontype type 'bytefx.data.mysqlclient.mysqlconnection, bytefx.data'. try using --with-dbconnection=type option.
help appreciated! thank you.
find , edit sqlmetal.exe.config , replace settings not use bytefx (long unsupported) , use mysql.data.
remember include qualified assembly name, in case line looks like:
provider name="mysql" dblinqschemaloader="dblinq.mysql.mysqlschemaloader, system.data.linq, version=3.5.0.0, culture=neutral, publickeytoken=b77a5c561934e089" databaseconnection="mysql.data.mysqlclient.mysqlconnection, mysql.data, version=6.2.3.0, culture=neutral, publickeytoken=2f3544035097bf97"
(i have mysql connector installed version , token)
regards
Comments
Post a Comment