From affe196e73bcc8fda5b976c3f497f162ec88b486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88?= Date: Wed, 5 Mar 2025 12:25:11 -0500 Subject: [PATCH] feat: exposing entity method --- .../INullinsideContext.cs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/Nullinside.Api.Model/INullinsideContext.cs b/src/Nullinside.Api.Model/INullinsideContext.cs index f75cacf..deadecf 100644 --- a/src/Nullinside.Api.Model/INullinsideContext.cs +++ b/src/Nullinside.Api.Model/INullinsideContext.cs @@ -1,4 +1,5 @@ using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.ChangeTracking; using Microsoft.EntityFrameworkCore.Infrastructure; using Nullinside.Api.Model.Ddl; @@ -76,4 +77,23 @@ public interface INullinsideContext : IAsyncDisposable { /// The number of state entries written to the database. /// int SaveChanges(); + + /// + /// Gets an for the given entity. The entry provides + /// access to change tracking information and operations for the entity. + /// + /// + /// + /// This method may be called on an entity that is not tracked. You can then + /// set the property on the returned entry + /// to have the context begin tracking the entity in the specified state. + /// + /// + /// See Accessing tracked entities in EF Core for more information and + /// examples. + /// + /// + /// The entity to get the entry for. + /// The entry for the given entity. + EntityEntry Entry(object entity); } \ No newline at end of file