File tree 2 files changed +23
-16
lines changed
2 files changed +23
-16
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,13 @@ public static IFutureValue<T> ToFutureValue<T>(this IQueryable<T> query)
104
104
return ( IFutureValue < T > ) future ;
105
105
}
106
106
107
+ /// <summary>
108
+ /// Allows to specify the parameter NHibernate type to use for a literal in a queryable expression.
109
+ /// </summary>
110
+ /// <typeparam name="T">The type of the literal.</typeparam>
111
+ /// <param name="parameter">The literal value.</param>
112
+ /// <param name="type">The NHibernate type, usually obtained from <c>NHibernateUtil</c> properties.</param>
113
+ /// <returns>The literal value.</returns>
107
114
[ DBOnly ]
108
115
public static T MappedAs < T > ( this T parameter , IType type )
109
116
{
Original file line number Diff line number Diff line change @@ -8,22 +8,22 @@ namespace NHibernate.Linq.ReWriters
8
8
/// Result of <see cref="ResultOperatorRewriter.Rewrite" />.
9
9
/// </summary>
10
10
public class ResultOperatorRewriterResult
11
- {
12
- public ResultOperatorRewriterResult ( IEnumerable < ResultOperatorBase > rewrittenOperators , IStreamedDataInfo evaluationType )
13
- {
14
- RewrittenOperators = rewrittenOperators ;
15
- EvaluationType = evaluationType ;
16
- }
11
+ {
12
+ public ResultOperatorRewriterResult ( IEnumerable < ResultOperatorBase > rewrittenOperators , IStreamedDataInfo evaluationType )
13
+ {
14
+ RewrittenOperators = rewrittenOperators ;
15
+ EvaluationType = evaluationType ;
16
+ }
17
17
18
- /// <summary>
19
- /// Gets an <see cref="IEnumerable{T}" /> of <see cref="ResultOperatorBase" /> implementations that were
20
- /// rewritten.
21
- /// </summary>
22
- public IEnumerable < ResultOperatorBase > RewrittenOperators { get ; }
18
+ /// <summary>
19
+ /// Gets an <see cref="IEnumerable{T}" /> of <see cref="ResultOperatorBase" /> implementations that were
20
+ /// rewritten.
21
+ /// </summary>
22
+ public IEnumerable < ResultOperatorBase > RewrittenOperators { get ; }
23
23
24
- /// <summary>
25
- /// Gets the <see cref="IStreamedDataInfo" /> representing the type of data that the operator works upon.
26
- /// </summary>
27
- public IStreamedDataInfo EvaluationType { get ; }
28
- }
24
+ /// <summary>
25
+ /// Gets the <see cref="IStreamedDataInfo" /> representing the type of data that the operator works upon.
26
+ /// </summary>
27
+ public IStreamedDataInfo EvaluationType { get ; }
28
+ }
29
29
}
You can’t perform that action at this time.
0 commit comments