WarningsConfigurationBuilder.Ignore(CoreEventId[]) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
生成指定的核心警告时不发生任何操作。 数据库提供程序 (和其他扩展) 可能会提供此方法的扩展方法重载,以便为它们生成的警告配置此行为。
public virtual Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder Ignore (params Microsoft.EntityFrameworkCore.Infrastructure.CoreEventId[] coreEventIds);
abstract member Ignore : Microsoft.EntityFrameworkCore.Infrastructure.CoreEventId[] -> Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder
override this.Ignore : Microsoft.EntityFrameworkCore.Infrastructure.CoreEventId[] -> Microsoft.EntityFrameworkCore.Infrastructure.WarningsConfigurationBuilder
Public Overridable Function Ignore (ParamArray coreEventIds As CoreEventId()) As WarningsConfigurationBuilder
参数
- coreEventIds
- CoreEventId[]
CoreEventId 警告 () 。
返回
同一生成器实例,以便可以链接多个调用。