原创 批量替換數據庫中所有的 文字

如:將自有替換爲喜兒 declare @t varchar(255),@c varchar(255) declare table_cursor cursor for select a.name,b.name from sysobjec

原创 Twitter style paging with ASP.NET MVC and jQuery

來源:http://joelabrahamsson.com/twitter-style-paging-with-aspnet-mvc-and-jqu

原创 2個不同數據庫中表的數據導入

語法: insert   into   目標數據庫.dbo.目標表名(字段1...字段n)    select   段1...字段n   from   源數據庫.dbo.源表名   實例: insert into xierca

原创 java開發環境搭建

http://www.cnblogs.com/cnjava/archive/2013/01/29/2881654.html

原创 js參數不要直接傳漢字,防止編碼錯誤,轉換成UniCode編碼

C#轉換UniCode方法 /// <summary> /// 字符串轉爲UniCode碼字符串 /// </summary> /// <param name="s"></par

原创 在.net core中使用AutoMapper

1、新建一個類 using AutoMapper;using YourModels;using YourViewModels;namespace YourNamespace{ public class AutoMapperProfil

原创 No executable found matching command "bower"

屏蔽project.json中的 scripts //"scripts": { // "prepublish": [ "bower install", "dotnet bundle" ], // "postpublish":

原创 【android】利用service監聽來電或來信息

寫這個東西只是爲了練手,拍磚隨意。反正自己也是菜鳥。 微信/QQ在退出主界面之後還是會一直監聽消息。如何實現呢? 一下做的測試,監聽爲用戶的新信息。首先:建立主程序界面 <Button and

原创 ASP.NET Core讀取appsettings.json的配置

在.net core中是沒有*.config 文件的 配置文件都是*.json 1、在project.json裏下面這行代碼 "Microsoft.Extensions.Options.ConfigurationExtensio

原创 實體框架配置節

實體框架允許從配置文件指定大量設置。一般來說,EF 遵循“約定先於配置”的原則。本文討論的所有設置都有默認行爲,您只需負責在默認值不再能夠滿足需求時更改設置。 所有這些設置都可以使用代碼來應用。配置文件選項可用於在部署期間輕鬆更改這

原创 .net core學習資料整理

官方網站:https://www.microsoft.com/net/core#windows 官方文檔:https://docs.asp.net/en/latest/intro.html 中文翻譯小組:http://www.

原创 安裝時報0x80070490 找不到元素

這裏應該是vs只裝了web沒有裝c++ 下載一個 VC_redist.x64.exe 安裝就行了 https://github.com/dotnet/core/issues/271

原创 async和await異步操作

class Program { static void Main(string[] args) { // 同步方式 Console.WriteLine

原创 在ASP.NET Core Identity外面使用Cookie中間件

1、在 app.UseMvc 前面加上app.UseCookieAuthentication app.UseCookieAuthentication(new CookieAuthenticationOptions() { Authent

原创 .net core日誌 NLog.Extensions.Logging

https://github.com/NLog/NLog.Extensions.Logging