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 SourceTryAttachToEntity(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 |
|
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 |