[Mono-dev] Trying figure out EF6

Daniel Lo Nigro lists at dan.cx
Sat Nov 10 00:51:12 UTC 2012

Entity Framework uses the standard ADO.NET providers, so most
ADO.NETproviders should work with it. This includes the MySQL one,
which comes
with Ubuntu and Debian in the "libmysql6.4-cli" package, or you can
download it from http://dev.mysql.com/downloads/connector/net/. Just
reference MySQL.Data.dll and set up your App.config or Web.config
correctly. Here is an example config:

<?xml version="1.0" encoding="utf-8"?>
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient"
description=".Net Framework Data Provider for MySQL"
type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data" />
  <add name="BloggingContext"
       connectionString="Server=localhost; Database=dotnettest; Uid=root;
       providerName="MySql.Data.MySqlClient" />

Obviously, change all the placeholder values (context name, server name,
database, username, password). You will need to use a very recent version
of Mono (3.0.1 or trunk) due to bug

On Sat, Nov 10, 2012 at 7:45 AM, Raul U. <ruria60 at yahoo.es> wrote:

> Hi, I´m trying to use Entity Framework, I would like to use MySql. In my
> understanding there is no EF6 provider yet, so this is not possible. In
> fact, I only found two providers available for EF, SQL Server and SQL CE.*
> ***
> ** **
> Is this right? Is there any other option out there?****
> ** **
> Thx.****
> ** **
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20121110/4a8b192d/attachment.html>

More information about the Mono-devel-list mailing list