ibatis.net:第四天,Update 和 Delete
摘要:
xml1 2 UPDATE [Orders] SET Customer = #Customer# WHERE Id = #Id#3 4 5 DELETE FROM [Orders] WHERE Id = #Id#6 代码 1 public static void UpdateOrder() 2 { 3 var mapper = Mapper.Instance(); 4 5 var order = new Order 6 { 7 ... 阅读全文
posted @ 2014-02-03 15:41 幸福框架 阅读(2416) 评论(0) 推荐(0) 编辑