共33页: 首页 上一页 3 4 5 6 7 8 9 10 11 下一页 末页 

Some tips about ubuntu server | or it may works on other linux distributions too

摘要: Mount usb-hdd/usb-flash disk to Ubuntu Server: 1, plug the hardware 2, run below command, see which maybe the device name tail -f /var/log/messages 3, mount it sudo mount -t <file system type|vfa...阅读全文
posted @ 2008-08-29 15:24 deerchao 阅读(232) 评论(0) 编辑

对Ado.net Entity Data Model Designer很失望

摘要: 1,无法根据Entity Model自动生成Database schema2,不会自动调整Entity, Property, Relationship名称的单复数形式(这可是连Linq 2 Sql Designer都能做到的事..)3,关闭edmx文件后,再次双击无法打开.只能关闭solution,重新加载solution,然后再打开..另外,感觉EDM本身目前真的不成熟,不过前途很光明,过个三五...阅读全文
posted @ 2008-08-18 17:07 deerchao 阅读(1615) 评论(3) 编辑

collection.All(x=> whatever(x)) 与 collection.Any(x=>whatever(x))

摘要: 命题:如果一个集合里每个元素都满足某个条件,则此任集合内至少有一个元素满足此条件.命题错误:var list = new string[0];var all = list.All(x => x.Length == -1) ; // all == truevar any = list.Any(x => x.Length == -1); // any == false注意, 即使如此, 仍然有以下关系成立:!a.Any(x => whatever(x)) == a.All(x => !whatever(x))阅读全文
posted @ 2008-08-11 16:12 deerchao 阅读(176) 评论(0) 编辑

Asp.net MVC里的TempData是一个整体

摘要: var a = TempData["a"];var alsoA = TempData["a"] ;//true Debug.Assert(Object.ReferenceEqual(a, alsoA)); =================objects within TempData will only be removed till the end of current request, if...阅读全文
posted @ 2008-08-04 15:57 deerchao 阅读(337) 评论(0) 编辑

it did suprise me a little bit..

摘要: [代码][代码]阅读全文
posted @ 2008-07-25 00:43 deerchao 阅读(150) 评论(0) 编辑
共33页: 首页 上一页 3 4 5 6 7 8 9 10 11 下一页 末页 

公告

统计

  • 随笔 - 153
  • 文章 - 9
  • 评论 - 1645