示例#1
0
 public override void SelectByName(string name)
 {
     SQLConnectionExecutor.ExecuteSQLQuery(ConnectionString, "select * from SAMPLETABLE where NAME like '%" + name + "%'").ForEach(Console.WriteLine);
 }
示例#2
0
        public override void ResetDB()
        {
            var resetStmt = EmbeddedResourceLoader.ReadFullContent("Scripts", "resetDB.sql");

            SQLConnectionExecutor.ExecuteSQLNonQuery(ConnectionString, resetStmt);
        }
示例#3
0
 public override void TestSQLQuery()
 {
     SQLConnectionExecutor.ExecuteSQLQuery(ConnectionString, "select * from SAMPLETABLE").ForEach(Console.WriteLine);
 }
示例#4
0
 public override void TestConnect()
 {
     SQLConnectionExecutor.ExecuteSQLNonQuery(ConnectionString, ";");
 }