VersaTul.Contracts
1.0.8
Prefix Reserved
dotnet add package VersaTul.Contracts --version 1.0.8
NuGet\Install-Package VersaTul.Contracts -Version 1.0.8
<PackageReference Include="VersaTul.Contracts" Version="1.0.8" />
paket add VersaTul.Contracts --version 1.0.8
#r "nuget: VersaTul.Contracts, 1.0.8"
// Install VersaTul.Contracts as a Cake Addin #addin nuget:?package=VersaTul.Contracts&version=1.0.8 // Install VersaTul.Contracts as a Cake Tool #tool nuget:?package=VersaTul.Contracts&version=1.0.8
VersaTul Contracts
VersaTul Contracts is a project that provides generic interfaces that are supported throughout the VersaTul ecosystem. Developers who may want to change the underlying implementation of these contracts can create their own implementation of such contract and supply it to the VersaTul project in which they require to change the behavior.
IPredicate<T>
IPredicate<T> is an interface that represents an expression that can be applied to the type of T.
Properties
Expression<Func<T, bool>> Condition
: Property to get or set an expression for filtering with Func of T.
Example
Here is an example implementation of IPredicate<T> as found in VersaTul.Data.MongoDB.Predicates.
public class MongoDbPredicate<T> : IPredicate<T>
{
public Expression<Func<T, bool>> Condition { get; set; }
public MongoDbPredicate(Expression<Func<T, bool>> condition)
{
Condition = condition;
}
}
License
This project is licensed under the MIT License - see the LICENSE file for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. |
-
net8.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on VersaTul.Contracts:
Package | Downloads |
---|---|
VersaTul.Data.MongoDB
The VersaTul Data MongoDB project provides functionality for working with Mongo Databases. The project uses the repository design pattern to provide the functionality to Fetch, Add, Update, or Delete data. |
GitHub repositories
This package is not used by any popular GitHub repositories.