Tendril.InMemory 0.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Tendril.InMemory --version 0.2.0                
NuGet\Install-Package Tendril.InMemory -Version 0.2.0                
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="Tendril.InMemory" Version="0.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Tendril.InMemory --version 0.2.0                
#r "nuget: Tendril.InMemory, 0.2.0"                
#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.
// Install Tendril.InMemory as a Cake Addin
#addin nuget:?package=Tendril.InMemory&version=0.2.0

// Install Tendril.InMemory as a Cake Tool
#tool nuget:?package=Tendril.InMemory&version=0.2.0                

Tendril.InMemory

About

Tendril is a Normalized Data Access Layer (DAL) Package. (See Tendril package)

This package provides extension methods for registering an in-memory data collection with Tendril.

Example

The following example shows registration of an in-memory data collection with the DataManager class

public class Student {
	public int Id { get; set; }
	public string Name { get; set; }
}

var findByFilterService = new LinqFindByFilterService<Student>()
	.WithFilterDefinition( s => s.Id, FilterOperator.EqualTo, v => s => s.Id == v.First() )
	.WithFilterDefinition( s => s.Name, FilterOperator.StartsWith, v => s => s.Name.StartsWith( v.Single() ) )
	.WithFilterDefinition( s => s.Name, FilterOperator.EqualTo, v => s => s.Name == v.Single() )
	.WithFilterDefinition( s => s.Name, FilterOperator.EndsWith, v => s => s.Name.EndsWith( v.Single() ) );

var filterValidator = new FilterChipValidatorService<Student>()
	.HasFilterType( s => s.Id, false, 1, 1, FilterOperator.EqualTo )
	.HasFilterType(
		s => s.Name, false, 1, 1,
		FilterOperator.StartsWith, FilterOperator.EqualTo, FilterOperator.EndsWith
	);

var dataManager = new DataManager()
	.WithInMemoryCache()
		.WithDbSet(
			s => s.Id,
			( k, s ) => s.Id = k,
			new KeyGeneratorSequential<Student, int>( ( k, _ ) => k + 1 ),
			findByFilterService,
			filterChipValidator
		);
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.3.0 465 9/26/2022
0.2.0 471 9/17/2022
0.1.1 411 6/21/2022
0.1.0 411 6/20/2022

Changed License type to MIT,
Reduced complexity of bootstrapping