File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1
1
using Microsoft . EntityFrameworkCore ;
2
+ using Microsoft . EntityFrameworkCore . ChangeTracking ;
2
3
using Microsoft . EntityFrameworkCore . Infrastructure ;
3
4
4
5
using Nullinside . Api . Model . Ddl ;
@@ -76,4 +77,23 @@ public interface INullinsideContext : IAsyncDisposable {
76
77
/// The number of state entries written to the database.
77
78
/// </returns>
78
79
int SaveChanges ( ) ;
80
+
81
+ /// <summary>
82
+ /// Gets an <see cref="EntityEntry" /> for the given entity. The entry provides
83
+ /// access to change tracking information and operations for the entity.
84
+ /// </summary>
85
+ /// <remarks>
86
+ /// <para>
87
+ /// This method may be called on an entity that is not tracked. You can then
88
+ /// set the <see cref="EntityEntry.State" /> property on the returned entry
89
+ /// to have the context begin tracking the entity in the specified state.
90
+ /// </para>
91
+ /// <para>
92
+ /// See <see href="https://aka.ms/efcore-docs-entity-entries">Accessing tracked entities in EF Core</see> for more information and
93
+ /// examples.
94
+ /// </para>
95
+ /// </remarks>
96
+ /// <param name="entity">The entity to get the entry for.</param>
97
+ /// <returns>The entry for the given entity.</returns>
98
+ EntityEntry Entry ( object entity ) ;
79
99
}
You can’t perform that action at this time.
0 commit comments