1
1
using System . Collections ;
2
+ using System . Collections . Generic ;
2
3
using NHibernate . Engine ;
3
4
4
5
namespace NHibernate
@@ -10,7 +11,7 @@ namespace NHibernate
10
11
public interface IFilter
11
12
{
12
13
/// <summary>
13
- /// Get the name of this filter.
14
+ /// Get the name of this filter.
14
15
/// </summary>
15
16
/// <returns>This filter's name.</returns>
16
17
string Name { get ; }
@@ -23,34 +24,26 @@ public interface IFilter
23
24
FilterDefinition FilterDefinition { get ; }
24
25
25
26
/// <summary>
26
- /// Set the named parameter's value list for this filter.
27
+ /// Set the named parameter's value list for this filter.
27
28
/// </summary>
28
29
/// <param name="name">The parameter's name.</param>
29
30
/// <param name="value">The values to be applied.</param>
30
31
/// <returns>This FilterImpl instance (for method chaining).</returns>
31
32
IFilter SetParameter ( string name , object value ) ;
32
33
33
34
/// <summary>
34
- /// Set the named parameter's value list for this filter. Used
35
- /// in conjunction with IN-style filter criteria.
35
+ /// Set the named parameter's value list for this filter. Used
36
+ /// in conjunction with IN-style filter criteria.
36
37
/// </summary>
37
38
/// <param name="name">The parameter's name.</param>
38
39
/// <param name="values">The values to be expanded into an SQL IN list.</param>
40
+ /// <typeparam name="T">The type of the values.</typeparam>
39
41
/// <returns>This FilterImpl instance (for method chaining).</returns>
40
- IFilter SetParameterList ( string name , ICollection values ) ;
41
-
42
- /// <summary>
43
- /// Set the named parameter's value list for this filter. Used
44
- /// in conjunction with IN-style filter criteria.
45
- /// </summary>
46
- /// <param name="name">The parameter's name.</param>
47
- /// <param name="values">The values to be expanded into an SQL IN list.</param>
48
- /// <returns>This FilterImpl instance (for method chaining).</returns>
49
- IFilter SetParameterList ( string name , object [ ] values ) ;
42
+ IFilter SetParameterList < T > ( string name , ICollection < T > values ) ;
50
43
51
44
/// <summary>
52
45
/// Perform validation of the filter state. This is used to verify the
53
- /// state of the filter after its enablement and before its use.
46
+ /// state of the filter after its activation and before its use.
54
47
/// </summary>
55
48
/// <returns></returns>
56
49
void Validate ( ) ;
0 commit comments