BabelDbContextExtensions
Namespace: Babel.Data Assembly: Babel.Data.dll
A babel database context extensions.
Inheritance
object ← BabelDbContextExtensions
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Methods
Exists<T>(BabelDbContext, T)
An extension method that determine if an entity is in the local view.
Parameters
Name | Description |
---|---|
| The context to act on. |
| The entity. |
Returns
Name | Description |
---|---|
True if it succeeds, false if it fails. |
Type Parameters
Name | Description |
---|---|
| Generic type parameter. |
IsAttached<T>(BabelDbContext, T)
An extension method that query if an entity is attached.
Parameters
Name | Description |
---|---|
| The context to act on. |
| The entry. |
Returns
Name | Description |
---|---|
True if the entry is attached, false if not. |
Type Parameters
Name | Description |
---|---|
| Generic type parameter. |
IsDetached<T>(BabelDbContext, T)
An extension method that query an entity is detached.
Parameters
Name | Description |
---|---|
| The context to act on. |
| The entry. |
Returns
Name | Description |
---|---|
True if the entry is detached, false if not. |
Type Parameters
Name | Description |
---|---|
| Generic type parameter. |
TryAttach<T>(BabelDbContext, DbSet<T>, T)
An extension method that attempts to attach.
Parameters
Name | Description |
---|---|
| The context to act on. |
| The collection. |
| The entry. |
Returns
Name | Description |
---|---|
True if it succeeds, false if it fails. |
Type Parameters
Name | Description |
---|---|
| Generic type parameter. |
Last updated