SDDev.Net.GenericRepository.Contracts 7.0.0

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

// Install SDDev.Net.GenericRepository.Contracts as a Cake Tool
#tool nuget:?package=SDDev.Net.GenericRepository.Contracts&version=7.0.0

Overview

The Contracts Project defines the models and interfaces used throughout the SDDev.Net.GenericRepository library. The reason it is separated from the main library package is in case you want to reference the IRepository interface, IStorableEntity interface, etc. without including the implementation dependencies on CosmosDB. This allows you, in your code, to separate your contract objects from your implementation while still being able to leverage the GenericRepository with those objects.

Here are a couple of the most important interfaces in this library:

Interface Description Notes
IStorableEntity All items stored by the GenericRepository must implement the IStorableEntity interface There is a BaseStorableEntity abstract implementation of this class that we recommend using to ensure you're setting keys properly
IAuditableEntity Extends the IStorableEntity and stores timestamps for when the object was created and last modified as UTC DateTime objects BaseAuditableEntity abstract class can be inherited from to automatically implement this interface
IRepository<T> The implementation agnostic interface for the library. Use this to represent the service that interacts with the database. GenericRepository<T> implements this interface
ISearchModel Interface to represent a serializable class that can be converted to a predicate using PredicateBuilder SearchModel implements this interface and is not abstract so you can use it directly if you don't have any special filtering requirements.
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SDDev.Net.GenericRepository.Contracts:

Package Downloads
SDDev.Net.GenericRepository

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
7.0.0 2,617 3/8/2024
5.3.4 187 2/25/2024
5.3.3 2,578 11/27/2023
5.3.0 9,064 7/24/2023
5.2.3 259 7/18/2023
5.2.2 142 7/18/2023
5.2.0 1,822 5/19/2023
5.0.0 4,842 1/11/2023
4.1.0 2,212 12/2/2022
4.0.6 5,223 7/3/2022
4.0.5 610 6/19/2022
4.0.4 402 6/19/2022
4.0.3 551 6/18/2022
4.0.2 422 6/18/2022
4.0.1 545 6/11/2022
4.0.0 546 6/11/2022
3.0.1 1,345 4/14/2022
3.0.0 1,114 2/26/2022
2.0.4 704 11/17/2021
2.0.2 1,229 7/18/2021
2.0.1 559 6/22/2021
2.0.0 556 6/17/2021
1.0.1 1,534 8/24/2018