08 2008 档案

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 阅读(359) 评论(0) 推荐(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 阅读(1911) 评论(3) 推荐(0) 编辑

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 阅读(375) 评论(0) 推荐(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 阅读(466) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

统计

点击右上角即可分享
微信分享提示