我是asp新手,我一直在学习本教程
https://www.youtube.com/watch?v=1ChahA1Hl-U
我无法生成创建,更新,插入和删除选项。 我的模型如下:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
namespace WebApplication3.Models
{
public class Customer
{
[key]
public string CustomerCode { get; set; }
public string CusomerName { get; set; }
}
}
当我尝试为视图创建控制器时,我收到错误 image of error here 因为我已经定义了密钥,所以我没有得到错误所说的内容。非常感谢您的建议和帮助。