Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/Nullinside.Api.Model/INullinsideContext.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.ChangeTracking;
using Microsoft.EntityFrameworkCore.Infrastructure;

using Nullinside.Api.Model.Ddl;
Expand Down Expand Up @@ -76,4 +77,23 @@ public interface INullinsideContext : IAsyncDisposable {
/// The number of state entries written to the database.
/// </returns>
int SaveChanges();

/// <summary>
/// Gets an <see cref="EntityEntry" /> for the given entity. The entry provides
/// access to change tracking information and operations for the entity.
/// </summary>
/// <remarks>
/// <para>
/// This method may be called on an entity that is not tracked. You can then
/// set the <see cref="EntityEntry.State" /> property on the returned entry
/// to have the context begin tracking the entity in the specified state.
/// </para>
/// <para>
/// See <see href="https://aka.ms/efcore-docs-entity-entries">Accessing tracked entities in EF Core</see> for more information and
/// examples.
/// </para>
/// </remarks>
/// <param name="entity">The entity to get the entry for.</param>
/// <returns>The entry for the given entity.</returns>
EntityEntry Entry(object entity);
}