Author: antonello
Date: 2007-04-02 17:34:05 -0400 (Mon, 02 Apr 2007)
New Revision: 75315
Added:
trunk/olive/tools/sqlmetal/System.Data.Linq/SqlMetal.cs
Removed:
trunk/olive/tools/sqlmetal/System.Data.Linq/LinqMapper.cs
Modified:
trunk/olive/tools/sqlmetal/Makefile
trunk/olive/tools/sqlmetal/sqlmetal.exe.sources
Log:
Modified: trunk/olive/tools/sqlmetal/Makefile
===================================================================
--- trunk/olive/tools/sqlmetal/Makefile 2007-04-02 21:29:39 UTC (rev 75314)
+++ trunk/olive/tools/sqlmetal/Makefile 2007-04-02 21:34:05 UTC (rev 75315)
@@ -1,4 +1,4 @@
-thisdir = tools/linqmapper
+thisdir = tools/sqlmetal
SUBDIRS =
include ../../build/rules.make
@@ -9,6 +9,6 @@
/r:System.Data.Linq.Design.dll
/r:Mono.GetOptions.dll
-PROGRAM = linqmapper.exe
+PROGRAM = sqlmetal.exe
include ../../build/executable.make
\ No newline at end of file
Deleted: trunk/olive/tools/sqlmetal/System.Data.Linq/LinqMapper.cs
===================================================================
--- trunk/olive/tools/sqlmetal/System.Data.Linq/LinqMapper.cs 2007-04-02
21:29:39 UTC (rev 75314)
+++ trunk/olive/tools/sqlmetal/System.Data.Linq/LinqMapper.cs 2007-04-02
21:34:05 UTC (rev 75315)
@@ -1,42 +0,0 @@
-using System.Data.Linq.Design;
-
-using Mono.GetOptions;
-
-namespace System.Data.Linq
-{
- class LinqMapper
- {
- static int Main(string[] args)
- {
- ProgramOptions opts = new ProgramOptions();
- opts.ProcessArgs(args);
-
- if (opts.IsSqlInput)
- {
- if (opts.DbType == null)
- opts.DbType = "mysql";
-
- ConnectionStringFormatter stringFormatter = null;
- try
- {
- stringFormatter =
ConnectionStringFormatter.GetFormatter(opts.DbType);
- }
- catch (ArgumentException)
- {
- Console.Out.WriteLine("Invalid connection type.");
- return 1;
- }
- }
- else if (opts.IsXmlInput)
- {
- //TODO:
- }
- else
- {
- return 1;
- }
-
- return 0;
- }
- }
-}
Copied: trunk/olive/tools/sqlmetal/System.Data.Linq/SqlMetal.cs (from rev
75314, trunk/olive/tools/sqlmetal/System.Data.Linq/LinqMapper.cs)
Modified: trunk/olive/tools/sqlmetal/sqlmetal.exe.sources
===================================================================
--- trunk/olive/tools/sqlmetal/sqlmetal.exe.sources 2007-04-02 21:29:39 UTC
(rev 75314)
+++ trunk/olive/tools/sqlmetal/sqlmetal.exe.sources 2007-04-02 21:34:05 UTC
(rev 75315)
@@ -1,4 +1,4 @@
Assembly/AssemblyInfo.cs
System.Data.Linq/ConnectionStringFormatter.cs
-System.Data.Linq/LinqMapper.cs
+System.Data.Linq/SqlMetal.cs
System.Data.Linq/ProgramOptions.cs
\ No newline at end of file
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches