コード例 #1
0
        /// <summary>
        /// Helper method which given a full SQL script, returns
        /// a <see cref="ScriptCollection"/> of individual <see cref="TemplateParameter"/>
        /// using "GO" as the delimiter.
        /// </summary>
        /// <param name="fullScriptText">Full script text.</param>
        public static ScriptCollection ParseScripts(string fullScriptText)
        {
            var scripts  = new ScriptCollection(fullScriptText);
            var splitter = new ScriptSplitter(fullScriptText);

            foreach (string script in splitter)
            {
                scripts.Add(new Script(script));
            }

            return(scripts);
        }
コード例 #2
0
 public SqlScriptReader(ScriptSplitter splitter)
     : base(splitter)
 {
 }
コード例 #3
0
 public SeparatorLineReader(ScriptSplitter splitter)
     : base(splitter)
 {
 }
コード例 #4
0
 protected ScriptReader(ScriptSplitter splitter)
 {
     Splitter = splitter;
 }