随笔分类 -  Pro Aspnet MVC 4读书笔记

Pro Aspnet MVC 4读书笔记(5) - Essential Tools for MVC
摘要:Listing 6-1. The Product Model Classusing System;using System.Collections.Generic;using System.Linq;using System.Web;namespace EssentialTools.Models{ public class Product { public int ProductId { get; set; } public string Name { get; set; } public string Description { get;... 阅读全文
posted @ 2014-01-22 14:29 逝者如斯(乎) 阅读(175) 评论(0) 推荐(0)
Pro Aspnet MVC 4读书笔记(4) - Working with Razor
摘要:Listing 5-1. Creating a Simple Domain Model Classusing System;using System.Collections.Generic;using System.Linq;using System.Web;namespace Razor.Models{ public class Product { public int ProductId { get; set; } public string Name { get; set; } public string Description { ... 阅读全文
posted @ 2014-01-22 10:26 逝者如斯(乎) 阅读(196) 评论(0) 推荐(0)
Pro Aspnet MVC 4读书笔记(3) - Essential Language Features
摘要:Listing 4-1. The Initial Content of the Home Controllerusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace LanguageFeatures.Controllers{ public class HomeController : Controller { public string Index() { retur... 阅读全文
posted @ 2014-01-21 11:30 逝者如斯(乎) 阅读(187) 评论(0) 推荐(0)
Pro Aspnet MVC 4读书笔记(2) - The MVC Pattern
摘要:Listing 3-1. The C# Auction Domain Modelusing System;using System.Collections.Generic;using System.Linq;using System.Web;namespace MvcPattern.Models{ public class Member { public string LoginName { get; set; } // The unique key public int ReputationPoints { get; set; } } pu... 阅读全文
posted @ 2014-01-21 08:22 逝者如斯(乎) 阅读(184) 评论(0) 推荐(0)
Pro Aspnet MVC 4读书笔记(1) - Your First MVC Application
摘要:Listing 2-1. The default contents of the HomeController classusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace PartyInvites.Controllers{ public class HomeController : Controller { public ActionResult Index() { ... 阅读全文
posted @ 2014-01-20 14:50 逝者如斯(乎) 阅读(130) 评论(0) 推荐(0)