@@ -61,7 +61,7 @@ public void Clear()
61
61
/// <param name="key">The entity key for which to locate any defined subselect fetch.</param>
62
62
/// <returns>The fetch descriptor; may return null if no subselect fetch queued for
63
63
/// this entity key.</returns>
64
- public SubselectFetch GetSubselect ( EntityKey key )
64
+ public SubselectFetch GetSubselect ( in EntityKey key )
65
65
{
66
66
SubselectFetch result ;
67
67
subselectsByEntityKey . TryGetValue ( key , out result ) ;
@@ -73,7 +73,7 @@ public SubselectFetch GetSubselect(EntityKey key)
73
73
/// </summary>
74
74
/// <param name="key">The entity for which to register the subselect fetch.</param>
75
75
/// <param name="subquery">The fetch descriptor.</param>
76
- public void AddSubselect ( EntityKey key , SubselectFetch subquery )
76
+ public void AddSubselect ( in EntityKey key , SubselectFetch subquery )
77
77
{
78
78
subselectsByEntityKey [ key ] = subquery ;
79
79
}
@@ -84,7 +84,7 @@ public void AddSubselect(EntityKey key, SubselectFetch subquery)
84
84
/// call this after loading the entity, since we might still
85
85
/// need to load its collections)
86
86
/// </summary>
87
- public void RemoveSubselect ( EntityKey key )
87
+ public void RemoveSubselect ( in EntityKey key )
88
88
{
89
89
subselectsByEntityKey . Remove ( key ) ;
90
90
}
@@ -111,7 +111,7 @@ public void ClearSubselects()
111
111
/// referenced entity to be included in a batch even though it is
112
112
/// already associated with the <see cref="ISession" />.
113
113
/// </remarks>
114
- public void AddBatchLoadableEntityKey ( EntityKey key )
114
+ public void AddBatchLoadableEntityKey ( in EntityKey key )
115
115
{
116
116
if ( key . IsBatchLoadable )
117
117
{
@@ -129,7 +129,7 @@ public void AddBatchLoadableEntityKey(EntityKey key)
129
129
/// need to batch fetch it anymore, remove it from the queue
130
130
/// if necessary
131
131
/// </summary>
132
- public void RemoveBatchLoadableEntityKey ( EntityKey key )
132
+ public void RemoveBatchLoadableEntityKey ( in EntityKey key )
133
133
{
134
134
if ( key . IsBatchLoadable )
135
135
{
0 commit comments