2010年9月6日
摘要: Ok, back to basics with this one.I have a collection of strings:1List<string> someStrings = new List<string>() { "aaaaaaa", "bbb", "ccc", "dddddddd" };And I want to remove the shorter item... 阅读全文
posted @ 2010-09-06 12:48 xqiwei 阅读(185) 评论(0) 推荐(0)
摘要: Here’s a quick tip how to show linebreaks in a tooltip in xaml.I wanted to show properties on multiple lines (in a multibinding):01' 02<LABEL Content="{Binding Name}"> 03<LABEL.TOOLTIP&... 阅读全文
posted @ 2010-09-06 12:45 xqiwei 阅读(140) 评论(0) 推荐(0)
摘要: Even though I seem to have gotten it right when I wrote about this in my book (I just checked) in my own memory I have had a misconception about GetObjectbyKey. I thought that GetObjectbyKey and TryGe... 阅读全文
posted @ 2010-09-06 12:39 xqiwei 阅读(302) 评论(0) 推荐(0)
摘要: When I want to fetch an entity, I normally have a method that uses a query. This method will always query the database and you will have an up-to-date entity.But if you need better performance perhaps... 阅读全文
posted @ 2010-09-06 12:37 xqiwei 阅读(516) 评论(0) 推荐(0)