EntityTypeFullNameComparer 类

定义

IEqualityComparer<T>IComparer<T>实现,用于按完整唯一名称比较IReadOnlyEntityType实例。

此类型通常由数据库提供程序 (和其他扩展) 使用。 它通常不用于应用程序代码。

public sealed class EntityTypeFullNameComparer : System.Collections.Generic.IComparer<Microsoft.EntityFrameworkCore.Metadata.IEntityType>, System.Collections.Generic.IEqualityComparer<Microsoft.EntityFrameworkCore.Metadata.IEntityType>
public sealed class EntityTypeFullNameComparer : System.Collections.Generic.IComparer<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType>, System.Collections.Generic.IEqualityComparer<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType>
type EntityTypeFullNameComparer = class
    interface IComparer<IEntityType>
    interface IEqualityComparer<IEntityType>
type EntityTypeFullNameComparer = class
    interface IComparer<IReadOnlyEntityType>
    interface IEqualityComparer<IReadOnlyEntityType>
Public NotInheritable Class EntityTypeFullNameComparer
Implements IComparer(Of IEntityType), IEqualityComparer(Of IEntityType)
Public NotInheritable Class EntityTypeFullNameComparer
Implements IComparer(Of IReadOnlyEntityType), IEqualityComparer(Of IReadOnlyEntityType)
继承
EntityTypeFullNameComparer
实现

注解

有关详细信息 和示例,请参阅数据库提供程序和扩展的实现

字段

Instance

要使用的比较器的单一实例。

方法

Compare(IEntityType, IEntityType)

比较两个对象并返回一个值,该值指示一个对象小于、等于还是大于另一个对象。

Compare(IReadOnlyEntityType, IReadOnlyEntityType)

比较两个对象并返回一个值,该值指示一个对象小于、等于还是大于另一个对象。

Equals(IEntityType, IEntityType)

确定指定的对象是否相等。

Equals(IReadOnlyEntityType, IReadOnlyEntityType)

确定指定的对象是否相等。

GetHashCode(IEntityType)

返回指定对象的哈希代码。

GetHashCode(IReadOnlyEntityType)

返回指定对象的哈希代码。

适用于