我正在尝试抑制迁移警告 CS8981。 我尝试了这样的方法,但它不起作用:
[assembly:SuppressMessage(
"Microsoft.Naming", "CS8981:The type name only contains lower-cased ascii characters.",
Justification = "Migrations can be named anyhow.",
Scope = "namespaceanddescendants", Target = "My.Namespace.Database.Migrations.Migrations")]
namespace My.Namespace.Database.Migrations.Migrations
{
public partial class appointmenttypeassignments : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
我不知道出了什么问题。也许类别不正确?找不到这里。