@@ -54,6 +54,11 @@ public static ITransaction GetCurrentTransaction(this ISession session)
54
54
/// if there is no such persistent instance. (If the instance, or a proxy for the instance, is
55
55
/// already associated with the session, return that instance or proxy.)
56
56
/// </summary>
57
+ /// <param name="session">The session.</param>
58
+ /// <param name="entityName">The entity name.</param>
59
+ /// <param name="id">The entity identifier.</param>
60
+ /// <param name="lockMode">The lock mode to use for getting the entity.</param>
61
+ /// <returns>A persistent instance, or <see langword="null" />.</returns>
57
62
public static object Get ( this ISession session , string entityName , object id , LockMode lockMode )
58
63
{
59
64
return
@@ -68,6 +73,12 @@ public static object Get(this ISession session, string entityName, object id, Lo
68
73
/// if there is no such persistent instance. (If the instance, or a proxy for the instance, is
69
74
/// already associated with the session, return that instance or proxy.)
70
75
/// </summary>
76
+ /// <typeparam name="T">The entity class.</typeparam>
77
+ /// <param name="session">The session.</param>
78
+ /// <param name="entityName">The entity name.</param>
79
+ /// <param name="id">The entity identifier.</param>
80
+ /// <param name="lockMode">The lock mode to use for getting the entity.</param>
81
+ /// <returns>A persistent instance, or <see langword="null" />.</returns>
71
82
public static T Get < T > ( this ISession session , string entityName , object id , LockMode lockMode = null )
72
83
{
73
84
return ( T ) session . Get ( entityName , id , lockMode ) ;
0 commit comments