SuperFast.Extensions.NetStandard 1.0.0

Superfast way to join a table with an object list

Install-Package SuperFast.Extensions.NetStandard -Version 1.0.0
dotnet add package SuperFast.Extensions.NetStandard --version 1.0.0
<PackageReference Include="SuperFast.Extensions.NetStandard" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SuperFast.Extensions.NetStandard --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

SuperFast.Extensions

Installing via NuGet

Install-Package SuperFast.Extensions

Example

Create a search model with 2 params

public class CarSearch
{
   public int Id { get; set; }
   public string Model { get; set; }
}

var carSearchObjects = new List<CarSearch>();

Your join would resemble something like this, which cant be doneas the join would be between an in memory object list and a sql server table:

from c in context.Cars
join o in carSearchObjects 
     on new { Id = c.Id, Model = c.Model } equals new { Id = o.Id, Model = o.Model }
select m;

Usage

using SuperFast.Extensions.Core;

using (var context = new DbContext())
{
    var carSearch = context.Cars.Take(800).Select(x => new { x.Model, x.Id }).ToList();

    var filtered = context.Cars.Contains(carSearch, "Cars", false, c => c.Model,  c => c.Id );

    Console.WriteLine(filtered.Count());
}

SuperFast.Extensions

Installing via NuGet

Install-Package SuperFast.Extensions

Example

Create a search model with 2 params

public class CarSearch
{
   public int Id { get; set; }
   public string Model { get; set; }
}

var carSearchObjects = new List<CarSearch>();

Your join would resemble something like this, which cant be doneas the join would be between an in memory object list and a sql server table:

from c in context.Cars
join o in carSearchObjects 
     on new { Id = c.Id, Model = c.Model } equals new { Id = o.Id, Model = o.Model }
select m;

Usage

using SuperFast.Extensions.Core;

using (var context = new DbContext())
{
    var carSearch = context.Cars.Take(800).Select(x => new { x.Model, x.Id }).ToList();

    var filtered = context.Cars.Contains(carSearch, "Cars", false, c => c.Model,  c => c.Id );

    Console.WriteLine(filtered.Count());
}

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 232 1/30/2019