InDice.NET 1.1.1

There is a newer version of this package available.
See the version list below for details.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package InDice.NET --version 1.1.1                
NuGet\Install-Package InDice.NET -Version 1.1.1                
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="InDice.NET" Version="1.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add InDice.NET --version 1.1.1                
#r "nuget: InDice.NET, 1.1.1"                
#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 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

MIT

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.
  • 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.

Version Downloads Last updated
1.2.7 338 1/2/2023
1.2.6 283 12/22/2022
1.2.5 287 12/19/2022
1.2.4 285 12/19/2022
1.2.3 290 12/19/2022
1.2.2 299 12/19/2022
1.2.1 296 12/19/2022
1.1.9 321 12/16/2022
1.1.8 326 12/16/2022