原创 我的友情鏈接
51CTO博客開發Coders' Text
原创 2014工作總結
js 獲取標籤name屬性this.getAttribute("name") | document.getElementById(id).getAttribute('name')CSS操作背景圖片background-size:100% 1
原创 EF數據庫遷移
開啓codefirst遷移命令:Enable-Migrations -ContextTypeName BlogEntitiesBlogEntities(上下文,繼承DbContext的那個類)更新數據庫命令:Update-Database
原创 序列化與反序列化
代碼:using System; using System.Collections.Generic; using System.Linq; using System.Text; using Newtonsoft.Json;//引用命名空間
原创 天氣預報接口
http://apix.sinaapp.com/weather/?city=鍾祥
原创 我的友情鏈接
51CTO博客開發Coders' Text
原创 2014工作總結
js 獲取標籤name屬性this.getAttribute("name") | document.getElementById(id).getAttribute('name')CSS操作背景圖片background-size:100% 1
原创 序列化與反序列化
代碼:using System; using System.Collections.Generic; using System.Linq; using System.Text; using Newtonsoft.Json;//引用命名空間
原创 HttpClient post
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using Syste
原创 Ioc Unity
<?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="unity" type="Microsoft.Pr
原创 Singleton設計模式(單實例)
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; //S
原创 T4模版
1,參照一下T4模版2,賦值上面部分和下面部分公共函數理解說明--------------------------------引用命名空間模版<#=codeStringGenerator.UsingDirectives(inHeader:
原创 MVC3----自定義客戶端驗證
1,自定義驗證類:using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.ComponentMode
原创 log4net配置文件基本配置
<?xml version="1.0" encoding="utf-8" ?> <log4net> <!--<appender name="RollingFileAppender" type="log4net.Appender.Roll
原创 MVC3----使用Jquery模板異步加載數據
*首先需要安裝JQuery模板(右鍵引用->管理NuGet程序包->搜索jquery.templates->安裝)--引用腳本<script type="text/javascript" src="@Url.Content("~/Scrip