added old method for people that are upgrading, and will let them the time to migrate their solution.

This commit is contained in:
David Lebee 2018-10-25 21:03:29 -05:00
parent 695d3085d1
commit 7c0d0ef6c9

View File

@ -77,6 +77,10 @@ namespace PoweredSoft.DynamicLinq.Fluent
public SelectBuilder Last(string propertyName) => Aggregate(null, SelectTypes.Last, propertyName); public SelectBuilder Last(string propertyName) => Aggregate(null, SelectTypes.Last, propertyName);
public SelectBuilder First(string propertyName) => Aggregate(null, SelectTypes.First, propertyName); public SelectBuilder First(string propertyName) => Aggregate(null, SelectTypes.First, propertyName);
[System.Obsolete("Use ToList instead")]
public SelectBuilder PathToList(string path, string propertyName = null, SelectCollectionHandling selectCollectionHandling = SelectCollectionHandling.LeaveAsIs)
=> ToList(path, propertyName, selectCollectionHandling);
public SelectBuilder ToList(string path, string propertyName = null, SelectCollectionHandling selectCollectionHandling = SelectCollectionHandling.LeaveAsIs) public SelectBuilder ToList(string path, string propertyName = null, SelectCollectionHandling selectCollectionHandling = SelectCollectionHandling.LeaveAsIs)
=> Aggregate(path, SelectTypes.ToList, propertyName: propertyName, selectCollectionHandling: selectCollectionHandling); => Aggregate(path, SelectTypes.ToList, propertyName: propertyName, selectCollectionHandling: selectCollectionHandling);