11using System . Collections ;
2+ using System . Collections . Generic ;
23using NHibernate . Engine ;
34
45namespace NHibernate
@@ -10,7 +11,7 @@ namespace NHibernate
1011 public interface IFilter
1112 {
1213 /// <summary>
13- /// Get the name of this filter.
14+ /// Get the name of this filter.
1415 /// </summary>
1516 /// <returns>This filter's name.</returns>
1617 string Name { get ; }
@@ -23,34 +24,26 @@ public interface IFilter
2324 FilterDefinition FilterDefinition { get ; }
2425
2526 /// <summary>
26- /// Set the named parameter's value list for this filter.
27+ /// Set the named parameter's value list for this filter.
2728 /// </summary>
2829 /// <param name="name">The parameter's name.</param>
2930 /// <param name="value">The values to be applied.</param>
3031 /// <returns>This FilterImpl instance (for method chaining).</returns>
3132 IFilter SetParameter ( string name , object value ) ;
3233
3334 /// <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.
3637 /// </summary>
3738 /// <param name="name">The parameter's name.</param>
3839 /// <param name="values">The values to be expanded into an SQL IN list.</param>
40+ /// <typeparam name="T">The type of the values.</typeparam>
3941 /// <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 ) ;
5043
5144 /// <summary>
5245 /// 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.
5447 /// </summary>
5548 /// <returns></returns>
5649 void Validate ( ) ;
0 commit comments