【发布时间】:2021-07-19 15:27:47
【问题描述】:
我正在尝试向我的用户表添加新字段。
当我运行Add-Migration newMigration 时,出现以下错误。
由于首选项变量“ErrorActionPreference”或公共参数设置为 Stop,正在运行的命令停止:术语“dotnet”未被识别为 cmdlet、函数、脚本文件或可运行程序的名称。 检查名称的拼写,或者如果包含路径,请验证路径是否正确并重试。
ApplicationUser.cs
using System;
using Microsoft.AspNetCore.Identity;
namespace fublight_server.Authentication
{
public class ApplicationUser:IdentityUser
{
public string FirstName { get; set; } // new field
public string LastName { get; set; } // new field
}
}
【问题讨论】:
标签: sql-server .net-core