using System; using System.Threading; //多线程调试: 2013.10.08 namespace ThreadExample { class App { public struct Data { public string Message; } //将消息写入控制台 static void ThreadMainWithParameter(object o) { Data d = (Data)o; Console.WriteLine("Running in a…
1.实现ruby中的多线程 # def test1 # n = 1 # if n > 10 # puts "test1结束" # else # while true # sleep 2 # puts n # n = n + 1 # end # end # end # # # def test2 # n = 100 # if n > 100 # puts "test2结束" # else # while true # sleep 2 # puts n #…
Oracle 用Drapper进行like模糊传参查询需要在参数值前后带%符合 string sqlstr="select * from tblname where name like :name"; var paramvalue = string.Format("%{0}%", keyword); object param = new { name= paramvalue }; var datas = conn.Query<TAXI_INFO>(s…