Exemple #1
0
 public static void Add(SqlScript script)
 {
     using (var q = new SqlStatement("INSERT INTO RevisionLog (name) VALUES (@name)"))
     {
         q.AddParameter("@name", script.Name);
         q.ExecuteNonQuery();
     }
 }
Exemple #2
0
 public static void Execute(string sql)
 {
     using (var q = new SqlStatement(sql, Config.Settings.ConnectionString))
         q.ExecuteNonQuery();
 }
Exemple #3
0
 public static void Execute(string cmdText)
 {
     using (var q = new SqlStatement(cmdText, GetMasterConnectionString()))
         q.ExecuteNonQuery();
 }