On Sat, 2010-02-13 at 23:10 +0530, Sharique uddin Ahmed Farooqui wrote:
> I'm testing sqlmetal provided with mono2.6.1 in opensuse. Is there any
> way I can replace bytefx provider with official mysql connector?

To temporarily change the provider, use the
--databaseConnectionProvider=TYPE argument, where TYPE is the
assembly-qualified name of your type, e.g.

        sqlmetal \
                --databaseConnectionProvider="MySql.Data.MySqlConnection, 
MySql.Data" \
                ...

MySql.Data will need to in a location findable by sqlmetal, e.g. in
$prefix/lib/mono/2.0, or if it's installed in the GAC you can use a
versioned reference.

If you want to permanently[0] change the binding, edit
$prefix/lib/mono/2.0/sqlmetal.exe.config and change
the /configuration/providers/provid...@name='MySQL']/@databaseConnection
XML attribute to use MySql.Data.MySqlConnection.

Note that --databaseConnectionProvider=TYPE will be changing to
--with-dbconnection=TYPE in a future DbLinq release.

 - Jon

[0] "permanently" == "until sqlmetal.exe.config is overwritten, which
may be at the next package upgrade."


-- 
You received this message because you are subscribed to the Google Groups 
"DbLinq" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/dblinq?hl=en.

Reply via email to