原创 .net core官方文檔
https://aspnet.readthedocs.io/en/latest/getting-started.html
原创 xamarin.Forms learn notes
xamarin.Form notes https://www.thewissen.io/introducing-xamarin-ui-july/ learn follow this guy. https://builtwithdo
原创 獲取控件正在使用的資源名稱
// 利用 ReadLocalValue 獲取資源對象 var obj = tb_hello.ReadLocalValue(TextBlock.TextProperty); if (obj == null) { Consol
原创 EFCore 使用額外說明
EFCore使用過程中鏡像查詢,lazyloading,上下文資源池等記錄 1.efcore使用過程中的查詢,一般都會直接去庫鏡像中查找,要避免鏡像查詢數據,在查詢中可以使用AsNoTracking(),讓查詢直
原创 VisualTreeHelper for Xamarin.Forms
Here’s my implementation for GetParent<T> and GetChildren<T>: ? public static class VisualTreeHelper { public stat
原创 c#路由事件
public static readonly DependencyProperty PageIndexProperty = DependencyProperty.Register("PageIndex", typeof(int),
原创 lisbox顯示爲表格樣式
綁定到自身,設置轉換器,設置borderThickness<Setter Property="BorderThickness" Value="{Binding RelativeSource={RelativeSource Self},Co
原创 Entity Framework7 入門之全功能.NET(Console, WinForms, WPF等)使用EF7
轉自:http://www.cnblogs.com/VolcanoCloud/p/4837748.html 昨天,我們介紹了EF的新特性和開發計劃,如果你還不瞭解,請移步 Entity Framework7 有哪些不同?現在開發到什麼程
原创 .netcore efcore針對單表輕鬆創建增刪改查頁面
.netcore web應用使用efcore可以輕鬆生成數據庫表增刪改查頁面,這對於一個系統的後臺管理網站非常有用,對於應用程序的配置表,關鍵數據字典表,都很有幫助。 1.創建好efcore數據訪問上下文,DbContext.
原创 EFCore 從已有數據庫生成entities
從已有數據庫添加控制代碼: 1.在程序集中添加nuget包,包括Microsoft.EntityFrameworkCore.SqlServer,Microsoft.EntityFrameworkCore.Design,Microsoft.
原创 EFCore code first 創建數據庫
此處記錄學習efcore 過程中一些學習筆記: 1.code first 創建數據庫,一對多關係對應爲一個對象擁有一個集合,這個集合使用virtual標識以便使用lazyLoading,另一方面被擁有的對象也有所屬對象及所屬對
原创 WPF圖片控件的旋轉、縮放、翻轉
WPF中對圖片進行旋轉是應用RotateTransform類,而進行縮放和翻轉則是應用ScaleTransform類。 旋轉: RotateTransform rotateTransf
原创 vs2015 自定義類模板的方法
第一步:找到模板文件 路徑:C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\ItemTemplates\CSharp\Code\2052\Class 文件名:
原创 wpf微軟官方示例
https://msdn.microsoft.com/zh-cn/library/ms771315(v=vs.90).aspx
原创 HTTP返回狀態碼及錯誤大全
原文鏈接:http://www.kaiyuanba.cn/html/1/131/226/4258.htm HTTP 400 - 請求無效 HTTP 401.1 - 未授權:登錄失敗 HTTP