Skip to content

Commit 7ccf5cf

Browse files
committed
Fix typos
1 parent 4dd8608 commit 7ccf5cf

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/NHibernate/Impl/CriteriaImpl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ public System.Type GetRootEntityTypeIfAvailable()
10381038
throw new HibernateException("Cannot provide root entity type because this criteria was initialized with an entity name.");
10391039
}
10401040

1041-
public LazyPropertyFetchMode GetFetchAllProperties(string path)
1041+
public LazyPropertyFetchMode GetLazyPropertyFetchMode(string path)
10421042
{
10431043
LazyPropertyFetchMode mode;
10441044
if (lazyPropertyFetchModes.TryGetValue(path, out mode))

src/NHibernate/Loader/Criteria/CriteriaJoinWalker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ protected override JoinType GetJoinType(IAssociationType type, FetchMode config,
166166

167167
protected override bool GetFetchAllProperties(string path)
168168
{
169-
return translator.RootCriteria.GetFetchAllProperties(path) >= LazyPropertyFetchMode.Select;
169+
return translator.RootCriteria.GetLazyPropertyFetchMode(path) >= LazyPropertyFetchMode.Select;
170170
}
171171

172172
private static bool IsDefaultFetchMode(FetchMode fetchMode)

src/NHibernate/Loader/JoinWalker.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ protected void InitPersisters(IList<OuterJoinableAssociation> associations, Lock
840840
if (!oj.IsCollection)
841841
{
842842
persisters[i] = (ILoadable)oj.Joinable;
843-
entityEagerPropertyFetches[i] = oj.FeatchAllProperties;
843+
entityEagerPropertyFetches[i] = oj.FetchAllProperties;
844844
aliases[i] = oj.RHSAlias;
845845
owners[i] = oj.GetOwner(associations);
846846
ownerAssociationTypes[i] = (EntityType)oj.JoinableType;
@@ -904,7 +904,7 @@ public string SelectString(IList<OuterJoinableAssociation> associations)
904904

905905
string selectFragment =
906906
joinable.SelectFragment(next == null ? null : next.Joinable, next == null ? null : next.RHSAlias, join.RHSAlias,
907-
entitySuffix, collectionSuffix, join.JoinType == JoinType.LeftOuterJoin, join.FeatchAllProperties);
907+
entitySuffix, collectionSuffix, join.JoinType == JoinType.LeftOuterJoin, join.FetchAllProperties);
908908

909909
if (selectFragment.Trim().Length > 0)
910910
{

src/NHibernate/Loader/OuterJoinableAssociation.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public sealed class OuterJoinableAssociation
2020
private readonly JoinType joinType;
2121
private readonly SqlString on;
2222
private readonly IDictionary<string, IFilter> enabledFilters;
23-
private readonly bool featchAllProperties;
23+
private readonly bool fetchAllProperties;
2424

2525
public OuterJoinableAssociation(IAssociationType joinableType, String lhsAlias, String[] lhsColumns, String rhsAlias,
2626
JoinType joinType, SqlString withClause, ISessionFactoryImplementor factory,
@@ -44,7 +44,7 @@ public OuterJoinableAssociation(IAssociationType joinableType, String lhsAlias,
4444
if (SqlStringHelper.IsNotEmpty(withClause))
4545
on = on.Append(" and ( ").Append(withClause).Append(" )");
4646
this.enabledFilters = enabledFilters; // needed later for many-to-many/filter application
47-
this.featchAllProperties = fetchAllProperties;
47+
this.fetchAllProperties = fetchAllProperties;
4848
}
4949

5050
public JoinType JoinType
@@ -98,9 +98,9 @@ public IJoinable Joinable
9898
get { return joinable; }
9999
}
100100

101-
public bool FeatchAllProperties
101+
public bool FetchAllProperties
102102
{
103-
get { return featchAllProperties; }
103+
get { return fetchAllProperties; }
104104
}
105105

106106
public int GetOwner(IList<OuterJoinableAssociation> associations)

0 commit comments

Comments
 (0)