上一页 1 2 3 4 5 6 ··· 14 下一页
摘要: APIDescriptionRequest bodyResponse body GET /api/todo Get all to-do items None Array of to-do items GET /api/todo/{id} Get an item by ID None To-do it 阅读全文
posted @ 2016-08-01 09:56 自然去留 阅读(353) 评论(0) 推荐(0)
摘要: Razor Syntax Reference Implicit Razor expressions @DateTime.Now @DateTime.IsLeapYear(2016) @await DoSomething("hello", "world") Explicit Razor expressions Last week this time: @(DateTime.Now - TimeS... 阅读全文
posted @ 2016-07-14 09:29 自然去留 阅读(451) 评论(0) 推荐(0)
摘要: There can be two types of duplication of rows in a table 1. Entire row getting duplicated because there is no primary key or unique key. 2. Only prima 阅读全文
posted @ 2016-07-10 10:14 自然去留 阅读(1164) 评论(0) 推荐(0)
摘要: Open Web Interface for .NET (OWIN) ------------------------------------------------------------------------- Running OWIN middleware in the ASP.NET pipeline "dependencies": { "Microsoft.AspNetCo... 阅读全文
posted @ 2016-07-08 10:48 自然去留 阅读(689) 评论(0) 推荐(0)
摘要: Servers ASP.NET Core ships with two different HTTP servers: •Microsoft.AspNetCore.Server.Kestrel (AKA Kestrel, cross-platform) •Microsoft.AspNetCore.Server.WebListener (AKA WebListener, Windows-onl... 阅读全文
posted @ 2016-06-30 10:42 自然去留 阅读(293) 评论(0) 推荐(0)
摘要: Application State Options --------------------------------------------------------------------- *HttpContext.Items app.Use(async (context, next) => { // perform some verification context.Item... 阅读全文
posted @ 2016-06-18 10:35 自然去留 阅读(243) 评论(0) 推荐(0)
摘要: 数据库出现置疑、可疑、脱机、单用户、紧急模式主要是因为数据库的日志文件除了问题,2000和2008修复方式不一样,2008的修复脚本在2000中不适用,主要是不被2000识别。 假设数据库名为:eisdoc: sqlserver2000数据库置疑的处理方式: 1.设置数据库允许直接操作系统表。 此操 阅读全文
posted @ 2016-06-14 10:49 自然去留 阅读(14032) 评论(0) 推荐(0)
摘要: Model Binding Below is a list of model binding attributes: •[BindRequired]: This attribute adds a model state error if binding cannot occur. •[BindNever]: Tells the model binder to never bind to thi... 阅读全文
posted @ 2016-06-14 09:47 自然去留 阅读(274) 评论(0) 推荐(0)
摘要: 1 select convert(decimal(18,2),rand()), convert(decimal(18,2),rand()) 2 3 select newid() 4 5 SELECT substring(LTrim(abs(checksum(newid()))),0,5) 6 7 update tablename 8 set FA=100, 9 FB... 阅读全文
posted @ 2016-06-05 08:17 自然去留 阅读(1083) 评论(0) 推荐(0)
摘要: Hosting -------------------------------------------------------------------------- Setting up a Host : using Microsoft.AspNetCore.Hosting; public class Program { public static void Ma... 阅读全文
posted @ 2016-05-20 14:49 自然去留 阅读(379) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 14 下一页