forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathICustomQuery.cs
32 lines (28 loc) · 1.02 KB
/
ICustomQuery.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
using System.Collections.Generic;
using NHibernate.Param;
using NHibernate.SqlCommand;
namespace NHibernate.Loader.Custom
{
/// <summary>
/// Extension point allowing any SQL query with named and positional parameters
/// to be executed by Hibernate, returning managed entities, collections and
/// simple scalar values.
/// </summary>
public interface ICustomQuery
{
/// <summary> The SQL query string to be performed. </summary>
SqlString SQL { get; }
/// <summary>
/// Any query spaces to apply to the query execution. Query spaces are
/// used in Hibernate's auto-flushing mechanism to determine which
/// entities need to be checked for pending changes.
/// </summary>
ISet<string> QuerySpaces { get; }
/// <summary>
/// A collection of <see cref="IReturn"/> descriptors describing the
/// ADO result set to be expected and how to map this result set.
/// </summary>
IList<IReturn> CustomQueryReturns { get; }
IEnumerable<IParameterSpecification> CollectedParametersSpecifications { get; }
}
}