From ee076acdac033116ae760532dcf9702616d8aaf7 Mon Sep 17 00:00:00 2001 From: kudzu_cp <6d05c8c8ef5431987001abfdb2eadc9593ac9498> Date: Sat, 4 Sep 2010 17:24:52 +0000 Subject: [PATCH] --- .../CDebugger/DebugSymbol.cs | 23 +++++++++++++++++- .../Cosmos.Debug.Common2010.csproj | 2 +- .../{fbclient.dll => fbembed.dll} | Bin source2/Users/Kudzu/FBTest/FBTest.csproj | 6 ++++- source2/Users/Kudzu/FBTest/app.config | 3 +++ 5 files changed, 31 insertions(+), 3 deletions(-) rename source2/Debug/Cosmos.Debug.Common/{fbclient.dll => fbembed.dll} (100%) create mode 100644 source2/Users/Kudzu/FBTest/app.config diff --git a/source2/Debug/Cosmos.Debug.Common/CDebugger/DebugSymbol.cs b/source2/Debug/Cosmos.Debug.Common/CDebugger/DebugSymbol.cs index 0449dc5f1..3f50eb0f9 100644 --- a/source2/Debug/Cosmos.Debug.Common/CDebugger/DebugSymbol.cs +++ b/source2/Debug/Cosmos.Debug.Common/CDebugger/DebugSymbol.cs @@ -1,4 +1,6 @@ -using System; +using FirebirdSql.Data.FirebirdClient; +using FirebirdSql.Data.Isql; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -31,7 +33,26 @@ namespace Cosmos.Debug.Common.CDebugger } public class MLDebugSymbol { + + protected static void CreateCPDB(string aPathname) { + var xCSB = new FbConnectionStringBuilder(); + xCSB.ServerType = FbServerType.Embedded; + xCSB.Database = @"m:\temp\Cosmos.cpdb"; + + FbConnection.CreateDatabase(xCSB.ToString()); + + using (var xConn = new FbConnection(xCSB.ToString())) { + var xExec = new FbBatchExecution(xConn); + //foreach (string cmd in script.Results) { + // xExec.SqlStatements.Add(cmd); + //} + //fbe.Execute(); + } + } + public static void WriteSymbolsListToFile(IEnumerable aSymbols, string aFile) { + CreateCPDB(Path.ChangeExtension(aFile, ".cpdb")); + var xDS = new SymbolsDS(); // This is a dataset and XML currently. // Later change it to a real DB as we don't need it in RAM all at once but we need it to be fast. diff --git a/source2/Debug/Cosmos.Debug.Common/Cosmos.Debug.Common2010.csproj b/source2/Debug/Cosmos.Debug.Common/Cosmos.Debug.Common2010.csproj index 9b5b934f1..07af426db 100644 --- a/source2/Debug/Cosmos.Debug.Common/Cosmos.Debug.Common2010.csproj +++ b/source2/Debug/Cosmos.Debug.Common/Cosmos.Debug.Common2010.csproj @@ -121,7 +121,7 @@ - + PreserveNewest diff --git a/source2/Debug/Cosmos.Debug.Common/fbclient.dll b/source2/Debug/Cosmos.Debug.Common/fbembed.dll similarity index 100% rename from source2/Debug/Cosmos.Debug.Common/fbclient.dll rename to source2/Debug/Cosmos.Debug.Common/fbembed.dll diff --git a/source2/Users/Kudzu/FBTest/FBTest.csproj b/source2/Users/Kudzu/FBTest/FBTest.csproj index c75afde92..c2e4dd09a 100644 --- a/source2/Users/Kudzu/FBTest/FBTest.csproj +++ b/source2/Users/Kudzu/FBTest/FBTest.csproj @@ -11,7 +11,8 @@ FBTest FBTest v4.0 - Client + + 512 SAK SAK @@ -56,6 +57,9 @@ Cosmos.Debug.Common2010 + + +