在我的代码中有@Html.Partial("_StatusMessage", Model.StatusMessage),但Visual Studio警告我:Error MVC1000: Use of IHtmlHelper.PartialConsider using <partial> Tag Helper or IHtmlHelper.PartialAsync.我应该禁用这个错误,或者我真的应该将@Html.Partial更改为@Html.PartialAsync,为什么?
我在实体框架实体中有一些字段,我想将其标记为过时。有可能吗?我有以下自动创建的代码:{ using System.Collections.Generic;
}namespace Data.Databases [MetadataType(typeof(AddressMetadata))]
public partial它编译ok,但在VS中没