VirtualMJ

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

02 2016 档案

摘要:1.BookDAL 有一个产生string 的方法 public string GetTestString() { string sReturn = ""; string[] sList = { "a", "b", "c", "d", "e", "f","g","h","i","j","k","l" 阅读全文
posted @ 2016-02-05 18:07 小马过河MJ 阅读(260) 评论(0) 推荐(0)

摘要:1. WebApi 和WebConfig 设置 using Libaray.DAL.Services; using Libaray.Models.Entities; using System; using System.Collections.Generic; using System.Linq; 阅读全文
posted @ 2016-02-05 11:03 小马过河MJ 阅读(1052) 评论(0) 推荐(0)

摘要:也许这么做是有意义的。 1. 路由配置 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routin 阅读全文
posted @ 2016-02-03 16:38 小马过河MJ 阅读(2202) 评论(0) 推荐(0)

摘要:1. NuGet 下载EntityFramework. 2. 定义Context 和 打开NuGet 命令 执行 Enable-Migrations , Libaray.DAL.Migrations.Configuration 要在执行命令后自动产生. using Libaray.Models.En 阅读全文
posted @ 2016-02-02 17:18 小马过河MJ 阅读(1575) 评论(0) 推荐(0)

摘要:1. NuGet 下载 PagedList.MVC 2. View Page @model PagedList.IPagedList<Libaray.Models.Entities.BookModel> @using PagedList.Mvc; @{ Layout = "~/Views/Share 阅读全文
posted @ 2016-02-02 17:08 小马过河MJ 阅读(367) 评论(0) 推荐(0)

摘要:1. Application_Error namespace Libaray.Web{ public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { AreaRegist 阅读全文
posted @ 2016-02-02 16:59 小马过河MJ 阅读(328) 评论(0) 推荐(0)