上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 41 下一页
摘要: 1.first of all之前在“使用T4模板生成代码 – 初探” 文章简单的使用了T4模板的生成功能,但对于一个模板生成多个实例文件,如何实现这个方式呢?无意发现一个解决方案 “MultipleOutputHelper.ttinclude” ,它让基于T4模板批量生成文件实例变得简单起来了。什么... 阅读全文
posted @ 2015-11-28 22:47 calochCN 阅读(362) 评论(0) 推荐(0)
摘要: 1.use nuget to install unity.webapi 2.add configurations in application_start folder using Microsoft.Practices.Unity; using PatV2Tool.Bussiness.BLL; u 阅读全文
posted @ 2015-11-28 19:32 calochCN 阅读(329) 评论(0) 推荐(0)
摘要: 1.add content negotiatorusing System;using System.Collections.Generic;using System.Linq;using System.Net.Http;using System.Net.Http.Formatting;using S... 阅读全文
posted @ 2015-11-28 19:28 calochCN 阅读(329) 评论(0) 推荐(0)
摘要: use ef power tools, as to .edmx file,right click at view, choose generate database from model, then copy the generated sql text, run the text in datab... 阅读全文
posted @ 2015-11-28 15:24 calochCN 阅读(231) 评论(0) 推荐(0)
摘要: web api写api接口时默认返回的是把你的对象序列化后以XML形式返回,那么怎样才能让其返回为json呢,下面为大家介绍几种不错的方法web api写api接口时默认返回的是把你的对象序列化后以XML形式返回,那么怎样才能让其返回为json呢,下面就介绍两种方法: 方法一:(改配置法) 找到G... 阅读全文
posted @ 2015-11-27 14:02 calochCN 阅读(575) 评论(0) 推荐(0)
摘要: System.Net.Http是微软推出的最新的HTTP应用程序的编程接口,微软称之为“现代化的HTTP编程接口”,主要提供如下内容:1.用户通过HTTP使用现代化的WebService的客户端组件;2.能够同时在客户端与服务端同时使用的HTTP组件(比如处理HTTP标头和消息),为客户端和服务端提... 阅读全文
posted @ 2015-11-27 13:57 calochCN 阅读(631) 评论(0) 推荐(0)
摘要: 1.controllerusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace TestMvc.Controllers{ pu... 阅读全文
posted @ 2015-11-27 13:21 calochCN 阅读(164) 评论(0) 推荐(0)
摘要: public override object operator + (object a,object b) { return this; } 阅读全文
posted @ 2015-11-23 13:48 calochCN 阅读(114) 评论(0) 推荐(0)
摘要: 如题。记录下。 复合主键,由多个字段共同确定一行信息 composite key, containing multi cols to fix one element. 阅读全文
posted @ 2015-11-19 14:42 calochCN 阅读(515) 评论(0) 推荐(0)
摘要: Quartz.Net中的概念:计划者(IScheduler)、工作(IJob)、触发器(Trigger)。给计划者一个工作,让他在Trigger(什么条件下做这件事)触发的条件下执行这个工作将要定时执行的任务的代码写到实现IJob接口的Execute方法中即可,时间到来的时候Execute方法会被调... 阅读全文
posted @ 2015-11-08 07:13 calochCN 阅读(720) 评论(0) 推荐(0)
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 41 下一页