@@ -9,7 +9,7 @@ public static class QueryOverExtensions
9
9
/// <param name="queryOver">The query on which to set the timeout.</param>
10
10
/// <param name="timeout">The timeout in seconds.</param>
11
11
/// <returns><see langword="this" /> (for method chaining).</returns>
12
- public static IQueryOver < TRoot > SetTimeout < TRoot > ( this IQueryOver < TRoot > queryOver , int timeout )
12
+ public static TQueryOver SetTimeout < TQueryOver > ( this TQueryOver queryOver , int timeout ) where TQueryOver : IQueryOver
13
13
{
14
14
queryOver . RootCriteria . SetTimeout ( timeout ) ;
15
15
return queryOver ;
@@ -21,7 +21,7 @@ public static IQueryOver<TRoot> SetTimeout<TRoot>(this IQueryOver<TRoot> queryOv
21
21
/// <param name="queryOver">The query on which to set the timeout.</param>
22
22
/// <param name="fetchSize">The fetch size.</param>
23
23
/// <returns><see langword="this" /> (for method chaining).</returns>
24
- public static IQueryOver < TRoot > SetFetchSize < TRoot > ( this IQueryOver < TRoot > queryOver , int fetchSize )
24
+ public static TQueryOver SetFetchSize < TQueryOver > ( this TQueryOver queryOver , int fetchSize ) where TQueryOver : IQueryOver
25
25
{
26
26
queryOver . RootCriteria . SetFetchSize ( fetchSize ) ;
27
27
return queryOver ;
@@ -33,7 +33,7 @@ public static IQueryOver<TRoot> SetFetchSize<TRoot>(this IQueryOver<TRoot> query
33
33
/// <param name="queryOver">The query on which to set the timeout.</param>
34
34
/// <param name="comment">A human-readable string.</param>
35
35
/// <returns><see langword="this" /> (for method chaining).</returns>
36
- public static IQueryOver < TRoot > SetComment < TRoot > ( this IQueryOver < TRoot > queryOver , string comment )
36
+ public static TQueryOver SetComment < TQueryOver > ( this TQueryOver queryOver , string comment ) where TQueryOver : IQueryOver
37
37
{
38
38
queryOver . RootCriteria . SetComment ( comment ) ;
39
39
return queryOver ;
0 commit comments