From fe9cb782f6d8063fc0d73ebc4a2d9439c6c74295 Mon Sep 17 00:00:00 2001 From: David Lebee Date: Thu, 25 Oct 2018 21:09:55 -0500 Subject: [PATCH] updated documentation, and made the old method obsolete using attribute, would force compilation to fail. --- PoweredSoft.DynamicLinq/Fluent/Select/SelectBuilder.cs | 2 +- README.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/PoweredSoft.DynamicLinq/Fluent/Select/SelectBuilder.cs b/PoweredSoft.DynamicLinq/Fluent/Select/SelectBuilder.cs index 5dbbff9..2365aba 100644 --- a/PoweredSoft.DynamicLinq/Fluent/Select/SelectBuilder.cs +++ b/PoweredSoft.DynamicLinq/Fluent/Select/SelectBuilder.cs @@ -77,7 +77,7 @@ 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")] + [System.Obsolete("Use ToList instead", true)] public SelectBuilder PathToList(string path, string propertyName = null, SelectCollectionHandling selectCollectionHandling = SelectCollectionHandling.LeaveAsIs) => ToList(path, propertyName, selectCollectionHandling); diff --git a/README.md b/README.md index bf0dba1..10e74be 100644 --- a/README.md +++ b/README.md @@ -192,6 +192,8 @@ Assert.AreEqual(first?.FirstName, "David"); ### How it can be used in a web api +> I highly suggest looking @ https://github.com/poweredsoft/dynamicquery if you are interested in this sample. + ```csharp [HttpGet][Route("FindClients")] public IHttpActionResult FindClients(string filterField = null, string filterValue = null,