MySQL Connector/Net 6.6.4, a new version of the all-managed .NET
driver for MySQL has been released. This is the Release
Candidate intended to introduce users to the new features in the
release.
MySQL Connector/Net 6.6.3, a new version of the all-managed .NET driver for MySQL has been released. This is the second of two beta releases intended to introduce users to the new features in the release.
The MySQL documentation section has always had this Topic Guides page containing links to the docs for the various MySQL Connectors -- the official database drivers for various languages and programming technologies. That is the most convenient way to get the information for each Connector in PDF form, rather than downloading the entire Ref Man PDF. For HTML, it was more of a shortcut, because
MySQL Connector/Net 6.5.3, a new version of the all-managed .NET
driver for MySQL has been released. This is the second of
our two Release Candidate (RC) releases. As is the case
with all non-GA releases, it should not be used in any production
environment. It is appropriate for use with MySQL server
versions 5.0-5.6
It is now available in source and binary form from http://dev.mysql.com/downloads/connector/net/#downloads
and mirror sites (note that not all mirror sites may be up to
date at this point-if you can't find this version on some mirror,
please try again later or choose another download site.)
The 6.5 release of MySQL Connector/Net brings new features such
as
- Exception and command injector support
- Millseconds support
- Better partial-trust support …
As you probably know, there were some problems using our connector in medium-trust level scenarios. Most hosting services provide MySQL access. Most of these hosting providers run their .NET web apps using medium trust. Prior to 6.5, our connector required the hosting provider to either run the application in full trust or to enable broad privileges like SocketPermission globally. Many hosting providers are unwilling to do that. So fully enabling our provider to run in a partial trust scenario was a strongly requested feature. The request was a very simple task: enable Connector/Net to work correctly in a medium-trust level environment when the library is installed in the GAC.
The implementation consisted of including the necessary security imperative asserts so the CLR allows our code to perform the operations where it needs permission to perform.
The permissions that we needed were: …
[Read more]Connector/Net is now enabled to work inside a Medium/Partial Trust security level. Just download the new 6.5 version to use with your .Net application and you should be able to see it working just fine.
We have a new feature as part of the 6.5 release. There is a new class that you can use to restrict access to specific connection strings that you want to use in all the connections in applications that use MySQL databases.
The following example shows how you can use the MySQLClientPermission class to restrict access to a specific server name and a database, while allowing any value for the User Id and Password within the connection string:
MySqlClientPermission permission = new MySqlClientPermission(PermissionState.None);
permission.Add("server=localhost;database=test;", " user id=; password=;",
KeyRestrictionBehavior.AllowOnly);
permission.PermitOnly();
MySqlConnection myconn = new MySqlConnection();
myconn.ConnectionString = "server=localhost; user id=QueryUser; database=test;";
myconn.Open(); // Attempt to use the connection string
The first line of …
[Read more]The release of the new 6.5 Connector/Net version includes a MySqlClientPermission class to help all the users define the security polices to use in the database connections within any application using a MySQL database.
Intellisense Support in Visual Studio
One of the cool features coming in Connector/NET 6.5 is the support in Visual Studio 2010 of Intellisense for MySql files.
As you probably know, the capability of editing mysql files (in the way of both .mysql raw files included in the solution and stored procedures/functions from Server Explorer) has been around for a while, yet a missing piece of the puzzle was to have advanced completion of sql statements in those files… until now.
Let’s explore the set of features currently implemented as part of Intellisense support.
Note: For completion intellisense features to work a database connection must be properly configured, see images below
|
For Server Explorer items, the connection is the root … |
One of the cool features coming in Connector/NET 6.5 is the support in Visual Studio 2010 of Intellisense for MySql files.
As you probably know, the capability of editing mysql files (in the way of both .mysql raw files included in the solution and stored procedures/functions from Server Explorer) has been around for a while, yet a missing piece of the puzzle was to have advanced completion of sql statements in those files… until now.