Exemplo n.º 1
0
        public void ExecuteScript(string script)
        {
            bool saveShouldNormalizeWhitespace = ExecuteCommand.ShouldNormalizeWhitespace;

            ExecuteCommand.ShouldNormalizeWhitespace = false;
            try
            {
                List <String> statements = SQLStore.ProcessBatches(script);
                for (int index = 0; index < statements.Count; index++)
                {
                    ExecuteStatement(statements[index]);
                }
            }
            finally
            {
                ExecuteCommand.ShouldNormalizeWhitespace = saveShouldNormalizeWhitespace;
            }
        }
Exemplo n.º 2
0
 protected internal SQLStoreConnection(SQLStore store) : base()
 {
     _store      = store;
     _connection = InternalCreateConnection();
 }