Skip to content

Commit 1040990

Browse files
committed
More in modifiers
1 parent 18f9ce1 commit 1040990

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/NHibernate/Engine/BatchFetchQueue.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void Clear()
6161
/// <param name="key">The entity key for which to locate any defined subselect fetch.</param>
6262
/// <returns>The fetch descriptor; may return null if no subselect fetch queued for
6363
/// this entity key.</returns>
64-
public SubselectFetch GetSubselect(EntityKey key)
64+
public SubselectFetch GetSubselect(in EntityKey key)
6565
{
6666
SubselectFetch result;
6767
subselectsByEntityKey.TryGetValue(key, out result);
@@ -73,7 +73,7 @@ public SubselectFetch GetSubselect(EntityKey key)
7373
/// </summary>
7474
/// <param name="key">The entity for which to register the subselect fetch.</param>
7575
/// <param name="subquery">The fetch descriptor.</param>
76-
public void AddSubselect(EntityKey key, SubselectFetch subquery)
76+
public void AddSubselect(in EntityKey key, SubselectFetch subquery)
7777
{
7878
subselectsByEntityKey[key] = subquery;
7979
}
@@ -84,7 +84,7 @@ public void AddSubselect(EntityKey key, SubselectFetch subquery)
8484
/// call this after loading the entity, since we might still
8585
/// need to load its collections)
8686
/// </summary>
87-
public void RemoveSubselect(EntityKey key)
87+
public void RemoveSubselect(in EntityKey key)
8888
{
8989
subselectsByEntityKey.Remove(key);
9090
}
@@ -111,7 +111,7 @@ public void ClearSubselects()
111111
/// referenced entity to be included in a batch even though it is
112112
/// already associated with the <see cref="ISession" />.
113113
/// </remarks>
114-
public void AddBatchLoadableEntityKey(EntityKey key)
114+
public void AddBatchLoadableEntityKey(in EntityKey key)
115115
{
116116
if (key.IsBatchLoadable)
117117
{
@@ -129,7 +129,7 @@ public void AddBatchLoadableEntityKey(EntityKey key)
129129
/// need to batch fetch it anymore, remove it from the queue
130130
/// if necessary
131131
/// </summary>
132-
public void RemoveBatchLoadableEntityKey(EntityKey key)
132+
public void RemoveBatchLoadableEntityKey(in EntityKey key)
133133
{
134134
if (key.IsBatchLoadable)
135135
{

src/NHibernate/Engine/IPersistenceContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ public static EntityEntry AddEntity(
425425
object entity,
426426
Status status,
427427
object[] loadedState,
428-
EntityKey entityKey,
428+
in EntityKey entityKey,
429429
object version,
430430
LockMode lockMode,
431431
bool existsInDatabase,

0 commit comments

Comments
 (0)