学习ASP.NET MVC,如果你是开发ASP.NET MVC项目的,也许你去为项目添加前ASP.NET项目的APP_Code目录,在这里创建与添加的Class类,也许你无法在MVC项目所引用。

那这样说,是不是一没有作用了呢?非也。

从下面一步一步来学习。

创建一个model,名称:Machine

ASP.NET MVC项目中App_Code目录在程序应用

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Insus.NET.Models
{
    public class Machine
    {
        public int Key { get; set; }

        public string ModelNumber { get; set; }

        public string Brand { get; set; }

        public DateTime ManufactureDate { get; set; }
    }
}
Source Code

相关文章:

  • 2022-01-28
  • 2021-08-24
  • 2022-12-23
  • 2021-10-03
  • 2021-09-10
  • 2022-01-04
猜你喜欢
  • 2021-09-28
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案