Show / Hide Table of Contents

Class EntityEntryExtensions

Extension methods for IEntityEntry.

Inheritance
System.Object
EntityEntryExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Data.Capabilities
Assembly: Kephas.Data.dll
Syntax
public static class EntityEntryExtensions

Methods

| Improve this Doc View Source

TryAttachToEntity(IEntityEntry, Object)

Tries to attach the entity entry to the given entity.

Declaration
public static bool TryAttachToEntity(this IEntityEntry entityEntry, object entity)
Parameters
Type Name Description
IEntityEntry entityEntry

The entityEntry to act on.

System.Object entity

The entity.

Returns
Type Description
System.Boolean

true if the attach succeeded, otherwise false.

| Improve this Doc View Source

TryGetAttachedEntityEntry(Object)

Tries to get the attached entity entry from the entity.

Declaration
public static IEntityEntry TryGetAttachedEntityEntry(this object entity)
Parameters
Type Name Description
System.Object entity

The entity.

Returns
Type Description
IEntityEntry

The attached IEntityEntry, or null.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX