语言

EntityFrameworkInternalAttribute 类

定义

将 API 标记为内部Entity Framework Core。 这些 API 不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 应仅在代码中直接使用此类 API,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.Struct)]
public sealed class EntityFrameworkInternalAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.Struct)>]
type EntityFrameworkInternalAttribute = class
    inherit Attribute
Public NotInheritable Class EntityFrameworkInternalAttribute
Inherits Attribute
继承
EntityFrameworkInternalAttribute
特性

构造函数

名称 说明
EntityFrameworkInternalAttribute()

将 API 标记为内部Entity Framework Core。 这些 API 不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 应仅在代码中直接使用此类 API,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。

适用于