上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 40 下一页
摘要: var logger = LoggerResolver.Current.Logger; var dbContext = applicationContext.DatabaseContext; var helper = new DatabaseSchemaHelper(dbContext.Databa 阅读全文
posted @ 2015-12-07 13:59 calochCN 阅读(192) 评论(0) 推荐(0) 编辑
摘要: The type or namespace name 'Html' does not exist in the namespace 'System.Web.Mvc' (are you missing an assembly reference?)solution: right click on re... 阅读全文
posted @ 2015-12-01 10:59 calochCN 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 1.Manager.ttinclude files = new List(); private Block footer = new Block(); private Block header = new Block(); private ITextTemplatingEngine... 阅读全文
posted @ 2015-11-29 22:16 calochCN 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 如题~ 阅读全文
posted @ 2015-11-29 21:50 calochCN 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 1.first of all之前在“使用T4模板生成代码 – 初探” 文章简单的使用了T4模板的生成功能,但对于一个模板生成多个实例文件,如何实现这个方式呢?无意发现一个解决方案 “MultipleOutputHelper.ttinclude” ,它让基于T4模板批量生成文件实例变得简单起来了。什么... 阅读全文
posted @ 2015-11-28 22:47 calochCN 阅读(351) 评论(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 阅读(319) 评论(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 阅读(317) 评论(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 阅读(219) 评论(0) 推荐(0) 编辑
摘要: web api写api接口时默认返回的是把你的对象序列化后以XML形式返回,那么怎样才能让其返回为json呢,下面为大家介绍几种不错的方法web api写api接口时默认返回的是把你的对象序列化后以XML形式返回,那么怎样才能让其返回为json呢,下面就介绍两种方法: 方法一:(改配置法) 找到G... 阅读全文
posted @ 2015-11-27 14:02 calochCN 阅读(563) 评论(0) 推荐(0) 编辑
摘要: System.Net.Http是微软推出的最新的HTTP应用程序的编程接口,微软称之为“现代化的HTTP编程接口”,主要提供如下内容:1.用户通过HTTP使用现代化的WebService的客户端组件;2.能够同时在客户端与服务端同时使用的HTTP组件(比如处理HTTP标头和消息),为客户端和服务端提... 阅读全文
posted @ 2015-11-27 13:57 calochCN 阅读(616) 评论(0) 推荐(0) 编辑
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 40 下一页