MemberIdentity Struct

Definition

Represents the identity of an entity type member, can be based on MemberInfo or just the name.

[System.Diagnostics.DebuggerDisplay("{DebuggerDisplay(),nq}")]
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct MemberIdentity
[System.Diagnostics.DebuggerDisplay("{DebuggerDisplay(),nq}")]
public readonly struct MemberIdentity
[System.Diagnostics.DebuggerDisplay("{DebuggerDisplay(),nq}")]
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct MemberIdentity : IEquatable<Microsoft.EntityFrameworkCore.Metadata.MemberIdentity>
[<System.Diagnostics.DebuggerDisplay("{DebuggerDisplay(),nq}")>]
[<System.Runtime.CompilerServices.IsReadOnly>]
type MemberIdentity = struct
[<System.Diagnostics.DebuggerDisplay("{DebuggerDisplay(),nq}")>]
type MemberIdentity = struct
Public Structure MemberIdentity
Public Structure MemberIdentity
Implements IEquatable(Of MemberIdentity)
Inheritance
MemberIdentity
Attributes
Implements

Remarks

See Modeling entity types and relationships for more information and examples.

Constructors

MemberIdentity(MemberInfo)

Constructs a new MemberIdentity from the given MemberInfo.

MemberIdentity(String)

Constructs a new MemberIdentity from the given member name.

Fields

None

A MemberIdentity instance that does not represent any member.

Properties

MemberInfo

The MemberInfo representing the member, or null if not known.

Name

The name of the member.

Methods

Create(MemberInfo)

Creates a new MemberIdentity from the given MemberInfo.

Create(String)

Creates a new MemberIdentity from the given member name.

Equals(MemberIdentity)

Indicates whether the current object is equal to another object of the same type.

Equals(Object)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

IsNone()
Obsolete.

Checks if the identity is empty, as opposed to representing a member.

Operators

Equality(MemberIdentity, MemberIdentity)

Compares one id to another id to see if they represent the same member.

Inequality(MemberIdentity, MemberIdentity)

Compares one id to another id to see if they represent different members.

Applies to