@@ -34,6 +34,12 @@ public static partial class SessionExtensions
34
34
/// if there is no such persistent instance. (If the instance, or a proxy for the instance, is
35
35
/// already associated with the session, return that instance or proxy.)
36
36
/// </summary>
37
+ /// <param name="session">The session.</param>
38
+ /// <param name="entityName">The entity name.</param>
39
+ /// <param name="id">The entity identifier.</param>
40
+ /// <param name="lockMode">The lock mode to use for getting the entity.</param>
41
+ /// <param name="cancellationToken">A cancellation token that can be used to cancel the work</param>
42
+ /// <returns>A persistent instance, or <see langword="null" />.</returns>
37
43
public static Task < object > GetAsync ( this ISession session , string entityName , object id , LockMode lockMode , CancellationToken cancellationToken = default ( CancellationToken ) )
38
44
{
39
45
if ( cancellationToken . IsCancellationRequested )
@@ -59,6 +65,13 @@ public static partial class SessionExtensions
59
65
/// if there is no such persistent instance. (If the instance, or a proxy for the instance, is
60
66
/// already associated with the session, return that instance or proxy.)
61
67
/// </summary>
68
+ /// <typeparam name="T">The entity class.</typeparam>
69
+ /// <param name="session">The session.</param>
70
+ /// <param name="entityName">The entity name.</param>
71
+ /// <param name="id">The entity identifier.</param>
72
+ /// <param name="lockMode">The lock mode to use for getting the entity.</param>
73
+ /// <param name="cancellationToken">A cancellation token that can be used to cancel the work</param>
74
+ /// <returns>A persistent instance, or <see langword="null" />.</returns>
62
75
public static async Task < T > GetAsync < T > ( this ISession session , string entityName , object id , LockMode lockMode = null , CancellationToken cancellationToken = default ( CancellationToken ) )
63
76
{
64
77
cancellationToken . ThrowIfCancellationRequested ( ) ;
0 commit comments