摘要: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...
阅读全文
摘要:1,无法根据Entity Model自动生成Database schema2,不会自动调整Entity, Property, Relationship名称的单复数形式(这可是连Linq 2 Sql Designer都能做到的事..)3,关闭edmx文件后,再次双击无法打开.只能关闭solution,重新加载solution,然后再打开..另外,感觉EDM本身目前真的不成熟,不过前途很光明,过个三五...
阅读全文
摘要:命题:如果一个集合里每个元素都满足某个条件,则此任集合内至少有一个元素满足此条件.命题错误: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))
阅读全文
摘要: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...
阅读全文