diff options
author | Luciano N. Callero <luciano@mono-cvs.ximian.com> | 2010-02-16 05:24:38 +0300 |
---|---|---|
committer | Luciano N. Callero <luciano@mono-cvs.ximian.com> | 2010-02-16 05:24:38 +0300 |
commit | f0111655433fcb1a2978f7f3acc4467a6984603f (patch) | |
tree | 7ba7ed7f252ba25132b3c7237ccdbc74c099704e /extras/MonoDevelop.Database/MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs | |
parent | 7143ce790735e439b5368a90681f5741536361a8 (diff) |
* MonoDevelop.Database.Sql/IDbLinq.cs:
* MonoDevelop.Database.Sql/Makefile.am:
* MonoDevelop.Database.Sql/SqlMetalServices.cs:
* MonoDevelop.Database.Sql/SqlMetalExecException.cs:
* MonoDevelop.Database.Sql/MonoDevelop.Database.Sql.csproj: Implement
SqlMetal Services
* MonoDevelop.Database.Sql.Sqlite/Makefile.am:
* MonoDevelop.Database.Sql.Npgsql/Makefile.am:
* MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:
* MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:
* MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:
* MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:
* MonoDevelop.Database.Sql.MySql/MonoDevelop.Database.Sql.MySql.csproj:
* MonoDevelop.Database.Sql.Npgsql/MonoDevelop.Database.Sql.Npgsql.csproj:
* MonoDevelop.Database.Sql.Sqlite/MonoDevelop.Database.Sql.Sqlite.csproj:
* MonoDevelop.Database.Sql.SqlServer/MonoDevelop.Database.Sql.SqlServer.csproj:
Implement IDbLinq interface for SqlMetal services.
Flush changes.
* MonoDevelop.Database.CodeGenerator/Commands/ToolCommands.cs:
Implement Generate Linq Class.
* MonoDevelop.Database.CodeGenerator/gtk-gui/gui.stetic:
* MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClass.cs:
* MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClass.cs:
Linq GUI Interfase.
* MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:
New menu under tools submenu on proyect/folders.
* MonoDevelop.Database.CodeGenerator/Makefile.am:
* MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.csproj:
Flush changes.
* MonoDevelop.Database.Components/Dialogs/DatabaseAvailableProvidersDialog.cs:
Available providers selector.
* MonoDevelop.Database.Components/Makefile.am:
* MonoDevelop.Database.Components/gtk-gui/gui.stetic:
* MonoDevelop.Database.Components/gtk-gui/objects.xml:
* MonoDevelop.Database.Components/MonoDevelop.Database.Components.csproj:
* MonoDevelop.Database.Components/Widgets/DatabaseConnectionEditorWidget.cs:
* MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DatabaseConnectionEditorWidget.cs:
* MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DatabaseAvailableProvidersDialog.cs:
Flush Changes.
Available providers dialog.
Database Connection Editor Widget.
* MonoDevelop.Database.Components/Widgets/ProjectDirectoryComboBox.cs:
Fix bug.
* MonoDevelop.Database.Components/Widgets/SelectSchemaWidget.cs: Use
Gtk.CellRendererPixbuf
svn path=/trunk/monodevelop/; revision=151767
Diffstat (limited to 'extras/MonoDevelop.Database/MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs')
-rw-r--r-- | extras/MonoDevelop.Database/MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/extras/MonoDevelop.Database/MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs b/extras/MonoDevelop.Database/MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs index a01eb5ad16..63791ea870 100644 --- a/extras/MonoDevelop.Database/MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs +++ b/extras/MonoDevelop.Database/MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs @@ -32,7 +32,7 @@ using MonoDevelop.Database.Components; namespace MonoDevelop.Database.Sql.MySql
{
- public class MySqlDbFactory : IDbFactory
+ public class MySqlDbFactory : IDbFactory, IDbLinq
{ private ISqlDialect dialect; private IConnectionProvider connectionProvider; @@ -91,5 +91,41 @@ namespace MonoDevelop.Database.Sql.MySql return settings; } + + #region IDbLinq implementation + public bool Generate (DatabaseConnectionSettings connection, string outputType, string outputFile, string language, + string style, string defaultNamespace, string entityBase, string entityAttr, + string membersAttr, string generateTypes, string culture, bool generateSchema, + bool generateTimestamp, bool overrideEqualAndHash, bool extractProcedures, bool pluralize) + { + return SqlMetalServices.Generate (Provider, connection, outputType, outputFile, language, style, defaultNamespace, + entityBase, entityAttr, membersAttr, generateTypes, culture, generateSchema, + generateTimestamp, overrideEqualAndHash, extractProcedures, pluralize); + } + + + public bool Generate (DatabaseConnectionSettings connection, string outputType, string outputFile, string defaultNamespace, + string entityBase, string entityAttr, string membersAttr, string generateTypes, + string culture, bool generateSchema, bool generateTimestamp, bool overrideEqualAndHash, + bool extractProcedures, bool pluralize) + { + return SqlMetalServices.Generate (Provider, connection, outputType, outputFile, defaultNamespace, + entityBase, entityAttr, membersAttr, generateTypes, culture, generateSchema, + generateTimestamp, overrideEqualAndHash, extractProcedures, pluralize); } + + public string Provider { + get { + return "MySql"; + } + } + + + public bool HasProcedures { + get { + return true; + } + } + + #endregion }
}
\ No newline at end of file |