InDice.NET
1.1.1
See the version list below for details.
dotnet add package InDice.NET --version 1.1.1
NuGet\Install-Package InDice.NET -Version 1.1.1
<PackageReference Include="InDice.NET" Version="1.1.1" />
paket add InDice.NET --version 1.1.1
#r "nuget: InDice.NET, 1.1.1"
// Install InDice.NET as a Cake Addin #addin nuget:?package=InDice.NET&version=1.1.1 // Install InDice.NET as a Cake Tool #tool nuget:?package=InDice.NET&version=1.1.1
InDice.NET
InDice.NET is a c# library to aid in generating keywords for poco classes.
Installation
Use the package manager nuget to install foobar.
Usage
Create a class with the "InDiceEntity" attribute, tag properties you want to generate keywords for with the attribute "InDiceInclude"
DefaultGenerator
[InDiceEntity]
public class PersonModel
{
public Guid Id { get; init; } = Guid.NewGuid();
[InDiceInclude]
public string Firstname { get; set; } = string.Empty;
[InDiceInclude]
public string Lastname { get; set; } = string.Empty;
[InDiceInclude]
public string DisplayName
{
get => $"{Firstname} {Lastname}";
}
}
Then just run the Generate method on an instance of the object.
var keywords = new DefaultGenerator().Generate(person);
DefaultEncoder
The DefaultEncoder used by DefaultGenerator will remove any non letters or numbers aswell as making the string all uppercase, if you need to remove other special characters, for instance wovels this can be achieved by simply adding a string (case insensitive) containing them to the constructor of the generator.
var keywords = new DefaultGenerator("AOUÅEIYÄÖ").Generate(person);
License
Product | Versions 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. |
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.