随笔分类 -  MVc

摘要:void ClearEngine() { // 移除 默认已经加载的Aspx 实体引擎 ViewEngines.Engines.RemoveAt(0); //获取razor 视图引擎 RazorVie... 阅读全文
posted @ 2015-09-07 12:03 陌念 阅读(196) 评论(0) 推荐(0)
摘要:1 命名空间 using Model; using Model.ModelViews; using AutoMapper;2 生成类 partial class : DbContext可以改成我们自己需要的public static class EntityMapper3 构造函数publi... 阅读全文
posted @ 2015-05-01 14:44 陌念 阅读(414) 评论(0) 推荐(0)
摘要:1输出类 public string EntityClassOpening(EntityType entity) { return string.Format( CultureInfo.InvariantCulture, "{0} {... 阅读全文
posted @ 2015-04-29 22:17 陌念 阅读(219) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace 新语法{ static class Program { static void Main(string[] args) { //2.1 调用带参数默认值的方法,编译后悔自动添加默认值到这个方法的括号中 // TestPareDafaule(); //2.2 ... 阅读全文
posted @ 2014-03-12 22:20 陌念 阅读(194) 评论(0) 推荐(0)