From 7c0d0ef6c9a2bc0ad87307659915fcac2ab204f0 Mon Sep 17 00:00:00 2001 From: David Lebee Date: Thu, 25 Oct 2018 21:03:29 -0500 Subject: [PATCH] added old method for people that are upgrading, and will let them the time to migrate their solution. --- PoweredSoft.DynamicLinq/Fluent/Select/SelectBuilder.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PoweredSoft.DynamicLinq/Fluent/Select/SelectBuilder.cs b/PoweredSoft.DynamicLinq/Fluent/Select/SelectBuilder.cs index 18b2d23..5dbbff9 100644 --- a/PoweredSoft.DynamicLinq/Fluent/Select/SelectBuilder.cs +++ b/PoweredSoft.DynamicLinq/Fluent/Select/SelectBuilder.cs @@ -77,6 +77,10 @@ namespace PoweredSoft.DynamicLinq.Fluent public SelectBuilder Last(string propertyName) => Aggregate(null, SelectTypes.Last, 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) => Aggregate(path, SelectTypes.ToList, propertyName: propertyName, selectCollectionHandling: selectCollectionHandling);