Tendril.EFCore 0.4.0

dotnet add package Tendril.EFCore --version 0.4.0                
NuGet\Install-Package Tendril.EFCore -Version 0.4.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.EFCore" Version="0.4.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Tendril.EFCore --version 0.4.0                
#r "nuget: Tendril.EFCore, 0.4.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.EFCore as a Cake Addin
#addin nuget:?package=Tendril.EFCore&version=0.4.0

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

Tendril.EFCore

About

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

This package provides extension methods for registering EF Core DbContexts and DbSets with Tendril.

Example

The following example shows registration of an EF Core DbContext and DbSet with the DataManager class

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

public class StudentDbContext : DbContext {
	public DbSet<Student> Students { get; set; }
}

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

var dataManager = new DataManager()
	.WithDbContext( () => new StudentDbContext( new DbContextOptions() ) )
		.WithDbSet(
			db => db.Students,
			findByFilterService
		);
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.4.0 507 9/26/2022
0.3.0 472 9/17/2022
0.2.1 436 6/21/2022
0.2.0 417 6/20/2022
0.1.0 432 6/20/2022

Added CountByFilter support
Added ability to override most operations for use case specific logic