forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIQueryableOptions.cs
42 lines (38 loc) · 1.4 KB
/
IQueryableOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
namespace NHibernate.Linq
{
// Methods signatures taken from IQuery.
/// <summary>
/// Expose NH queryable options.
/// </summary>
//Since v5.1
[Obsolete("Please use NhQueryableOptions instead.")]
public interface IQueryableOptions
{
/// <summary>
/// Enable caching of this query result set.
/// </summary>
/// <param name="cacheable">Should the query results be cacheable?</param>
/// <returns><see langword="this"/> (for method chaining).</returns>
IQueryableOptions SetCacheable(bool cacheable);
/// <summary>
/// Set the name of the cache region.
/// </summary>
/// <param name="cacheRegion">The name of a query cache region, or <see langword="null" />
/// for the default query cache</param>
/// <returns><see langword="this"/> (for method chaining).</returns>
IQueryableOptions SetCacheRegion(string cacheRegion);
/// <summary>
/// Override the current session cache mode, just for this query.
/// </summary>
/// <param name="cacheMode">The cache mode to use.</param>
/// <returns><see langword="this"/> (for method chaining).</returns>
IQueryableOptions SetCacheMode(CacheMode cacheMode);
/// <summary>
/// Set a timeout for the underlying ADO.NET query.
/// </summary>
/// <param name="timeout">The timeout in seconds.</param>
/// <returns><see langword="this" /> (for method chaining).</returns>
IQueryableOptions SetTimeout(int timeout);
}
}