Skip to content

Commit 49c6b89

Browse files
committed
NH-3608 - Fix access modifiers on AbstractSessionImpl::FutureCriteriaBatch and AbstractSessionImpl::FutureQueryBatch
1 parent 97c8999 commit 49c6b89

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/NHibernate/Impl/AbstractSessionImpl.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ public virtual IQueryTranslator[] GetQueries(IQueryExpression query, bool scalar
161161
public abstract IDbConnection Connection { get; }
162162
public abstract int ExecuteNativeUpdate(NativeSQLQuerySpecification specification, QueryParameters queryParameters);
163163
public abstract int ExecuteUpdate(string query, QueryParameters queryParameters);
164-
public abstract FutureCriteriaBatch FutureCriteriaBatch { get; internal set; }
165-
public abstract FutureQueryBatch FutureQueryBatch { get; internal set; }
164+
public abstract FutureCriteriaBatch FutureCriteriaBatch { get; protected internal set; }
165+
public abstract FutureQueryBatch FutureQueryBatch { get; protected internal set; }
166166

167167
public virtual IQuery GetNamedQuery(string queryName)
168168
{

src/NHibernate/Impl/SessionImpl.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public override FutureCriteriaBatch FutureCriteriaBatch
286286
futureCriteriaBatch = new FutureCriteriaBatch(this);
287287
return futureCriteriaBatch;
288288
}
289-
internal set
289+
protected internal set
290290
{
291291
futureCriteriaBatch = value;
292292
}
@@ -300,7 +300,7 @@ public override FutureQueryBatch FutureQueryBatch
300300
futureQueryBatch = new FutureQueryBatch(this);
301301
return futureQueryBatch;
302302
}
303-
internal set
303+
protected internal set
304304
{
305305
futureQueryBatch = value;
306306
}

src/NHibernate/Impl/StatelessSessionImpl.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,13 +1087,13 @@ public override int ExecuteUpdate(string query, QueryParameters queryParameters)
10871087
public override FutureCriteriaBatch FutureCriteriaBatch
10881088
{
10891089
get { throw new System.NotSupportedException("future queries are not supported for stateless session"); }
1090-
internal set { throw new System.NotSupportedException("future queries are not supported for stateless session"); }
1090+
protected internal set { throw new System.NotSupportedException("future queries are not supported for stateless session"); }
10911091
}
10921092

10931093
public override FutureQueryBatch FutureQueryBatch
10941094
{
10951095
get { throw new System.NotSupportedException("future queries are not supported for stateless session"); }
1096-
internal set { throw new System.NotSupportedException("future queries are not supported for stateless session"); }
1096+
protected internal set { throw new System.NotSupportedException("future queries are not supported for stateless session"); }
10971097
}
10981098

10991099
public override IEntityPersister GetEntityPersister(string entityName, object obj)

0 commit comments

Comments
 (0)