Skip to content

Commit

Permalink
Remove breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bahusoid committed Jul 31, 2023
1 parent ba4e74e commit a0a4dd2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,12 @@ protected override int DoUpdateRows(object id, IPersistentCollection collection,
}
}

[Obsolete("Please use overload without rhs and rhsAlias parameters")]
public override string SelectFragment(IJoinable rhs, string rhsAlias, string lhsAlias, string collectionSuffix, bool includeCollectionColumns, EntityLoadInfo entityInfo)
{
return SelectFragment(lhsAlias, collectionSuffix, includeCollectionColumns, entityInfo);
}

public override string SelectFragment(string lhsAlias, string collectionSuffix, bool includeCollectionColumns, EntityLoadInfo entityInfo)
{
return includeCollectionColumns ? GetSelectFragment(lhsAlias, collectionSuffix).ToSqlStringFragment(false) : string.Empty;
Expand Down
6 changes: 6 additions & 0 deletions src/NHibernate/Persister/Collection/OneToManyPersister.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,12 @@ protected override int DoUpdateRows(object id, IPersistentCollection collection,
}
}

[Obsolete("Please use overload without rhs and rhsAlias parameters")]
public override string SelectFragment(IJoinable rhs, string rhsAlias, string lhsAlias, string collectionSuffix, bool includeCollectionColumns, EntityLoadInfo entityInfo)
{
return SelectFragment(lhsAlias, collectionSuffix, includeCollectionColumns, entityInfo);
}

public override string SelectFragment(string lhsAlias, string collectionSuffix, bool includeCollectionColumns, EntityLoadInfo entityInfo)
{
var buf = new StringBuilder();
Expand Down

0 comments on commit a0a4dd2

Please sign in to comment.