摘要: What it is saying is, it found the DLL, but it couldn't find a type named "namespace.User" from within that DLL. It was expecting to find that type in that particular assembly, but did not. 阅读全文
posted @ 2013-11-09 18:26 MinieGoGo 阅读(1416) 评论(0) 推荐(0) 编辑
摘要: To debug xaml exception:Visual Studio -> Debug -> Exception -> Common Language Runtime Exceptions // Standard XAML initialization try { InitializeComponent(); } catch (Exception e) { Debug.WriteLine(e.ToString()); ... 阅读全文
posted @ 2013-11-06 11:25 MinieGoGo 阅读(236) 评论(0) 推荐(0) 编辑
摘要: public delegate TResult Func( T arg)http://msdn.microsoft.com/en-us/library/bb549151.aspx 阅读全文
posted @ 2013-11-05 16:57 MinieGoGo 阅读(230) 评论(0) 推荐(0) 编辑
摘要: http://msdn.microsoft.com/en-us/data/gg577611.aspx 阅读全文
posted @ 2013-11-05 11:42 MinieGoGo 阅读(133) 评论(0) 推荐(0) 编辑
摘要: A lot of the below depends on the types of data, how often it is changing, and how often it is likely to conflict.If:The data modified offline is likely to be separate from data that is downloaded / refreshed, orA data synchronisation pattern is in play for other mobile clients (iOS, Android etc)The 阅读全文
posted @ 2013-11-05 04:29 MinieGoGo 阅读(318) 评论(0) 推荐(0) 编辑
摘要: Inversion of Control- Dependency Injection- Dependency Lookuploose coupling/maintainability/late bindingabstract factoryunit testcontainer非 DI 的版本底下這段程式碼是 Console 應用程式的進入點:classProgram{staticvoidMain(string[]args){HeavyDutyaTask=newHeavyDuty();aTask.Run();}}Main 函式會先建立類別 HeavyDuty 的執行個體,然後呼叫該物件的 Run 阅读全文
posted @ 2013-11-04 18:56 MinieGoGo 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Periodic TaskPeriodic agentsrun for a small amount of time on a regular recurring interval. Typical scenarios for this type of task include uploading the device’s location and performing small amounts of data synchronization.ResourceIntensive TaskResource-intensive agentsrun for a relatively long pe 阅读全文
posted @ 2013-10-29 15:22 MinieGoGo 阅读(497) 评论(0) 推荐(0) 编辑
摘要: Polling. The Controllerperiodically asks theServicefor the latest data. IMHO, this option sucks, but it's certainly possible.Callbacks. TheControllerregisters a callback object ("observer") with theService. TheServiceinvokes a method on the callback when the data changes, which in turn 阅读全文
posted @ 2013-10-25 11:17 MinieGoGo 阅读(134) 评论(0) 推荐(0) 编辑
摘要: NULL. The value is a NULL value.INTEGER. The value is a signed integer, stored in 1, 2, 3, 4, 6, or 8 bytes depending on the magnitude of the value.REAL. The value is a floating point value, stored as an 8-byte IEEE floating point number.TEXT. The value is a text string, stored using the database en 阅读全文
posted @ 2013-10-24 08:52 MinieGoGo 阅读(263) 评论(0) 推荐(0) 编辑
摘要: Check dictionary value if it's emptydictionary.ElementAt(i).Value == DBNull.ValueCheck string valueif (String.IsNullOrWhiteSpace(mystring))equals to..if (mystring == null || mystring == String.Empty || mystring.Trim().Length == 0) earlier versionif (String.IsNullOrEmpty(mystring) || mystring.Tri 阅读全文
posted @ 2013-10-23 10:13 MinieGoGo 阅读(185) 评论(0) 推荐(0) 编辑