Beispiel #1
0
 public SqlScript(string name, string command, SqlVersion version, bool useSpecifiedDatabase, bool useTransaction)
 {
     this.Name    = name;
     this.Command = command;
     this.Version = version;
     this.UseSpecifiedDatabase = useSpecifiedDatabase;
     this.UseTransaction       = useTransaction;
 }
Beispiel #2
0
        public static SqlScript FromFile(string name, string path, SqlVersion version, bool useSpecifiedDatabase, bool useTransaction)
        {
            var content = ReadContent(path);

            return(FromContent(name, content, version, useSpecifiedDatabase, useTransaction));
        }
Beispiel #3
0
 public static SqlScript FromContent(string name, string content, SqlVersion version, bool useSpecifiedDatabase, bool useTransaction)
 {
     return(new SqlScript(name, content, version, useSpecifiedDatabase, useTransaction));
 }