SmartWhere 1.0.3
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package SmartWhere --version 1.0.3
NuGet\Install-Package SmartWhere -Version 1.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SmartWhere" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SmartWhere" Version="1.0.3" />
<PackageReference Include="SmartWhere" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SmartWhere --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SmartWhere, 1.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SmartWhere@1.0.3
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SmartWhere&version=1.0.3
#tool nuget:?package=SmartWhere&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SmartWhere
It intelligently filters a sequence of items in a simple and practical way.
SmartWhere is a method that aims to make the Queryable.Where method smarter and is based on the foundations of .NET Core.
Quick Start
The usage of SmartWhere is quite simple.
- Install
SmartWhereNuGet package from here.
PM> Install-Package SmartWhere
- You need to define our Request object for SmartWhere and sign it with the
IWhereClauseinterface.
public class PublisherSearchRequest : IWhereClause
- We mark the properties to be included in the filter with the
WhereClauseAttribute.
public class PublisherSearchRequest : IWhereClause
{
[WhereClause]
public int Id { get; set; }
[WhereClause(PropertyName = "Name"]
public string PublisherName { get; set; }
[WhereClause("Book.Name")]
public string BookName { get; set; }
[WhereClause("Books.Author.Name")]
public string AuthorName { get; set; }
}
- And we filter smartly. That's it.
[HttpPost]
public IActionResult GetPublisher(PublisherSearchRequest request)
{
var result = _context.Set<Publisher>()
.Include(x => x.Books)
.ThenInclude(x => x.Author)
.Where(request)
.ToList();
return Ok(result);
}
Be sure to check out the Wiki page for more details
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on SmartWhere:
| Package | Downloads |
|---|---|
|
EntityGuardian
In your projects developed with EntityFramework, it keeps track of all the changes that take place in your database and records them wherever you want. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 2.2.3 | 245 | 8/21/2025 | |
| 2.2.2.1 | 378 | 4/8/2025 | |
| 2.2.2 | 843 | 7/10/2024 | |
| 2.2.1 | 386 | 5/16/2024 | |
| 2.2.0.3 | 208 | 4/14/2024 | |
| 2.2.0.2 | 746 | 2/27/2024 | |
| 2.2.0.1 | 428 | 1/22/2024 | |
| 2.2.0 | 399 | 12/2/2023 | |
| 2.1.1.2 | 688 | 10/23/2023 | |
| 2.1.1.1 | 222 | 10/23/2023 | |
| 2.1.1 | 258 | 10/5/2023 | |
| 2.1.0 | 214 | 9/25/2023 | |
| 2.0.3 | 204 | 9/21/2023 | |
| 2.0.2 | 233 | 9/21/2023 | |
| 2.0.1 | 229 | 9/20/2023 | |
| 2.0.0 | 289 | 9/20/2023 | |
| 1.0.3 | 227 | 9/15/2023 | |
| 1.0.2.1 | 292 | 9/11/2023 | |
| 1.0.2 | 297 | 9/11/2023 | |
| 1.0.1 | 337 | 9/11/2023 | |
| 1.0.0 | 302 | 9/8/2023 |