NetcodeHub.Packages.Extensions.Attributes.RequiredGuid 1.0.0

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

// Install NetcodeHub.Packages.Extensions.Attributes.RequiredGuid as a Cake Tool
#tool nuget:?package=NetcodeHub.Packages.Extensions.Attributes.RequiredGuid&version=1.0.0                

Install the package

NetcodeHub.Packages.Extensions.Attributes.RequiredGuid

Add the namespace to the peoject

using NetcodeHub.Packages.Extensions.Attributes.RequiredGuid;

Create your model and use the attribute

 public class MyClass
{
 [NetcodeHubRequiredGuid(ErrorMessage ="Item must be selected")]
 public Guid ItemId { get; set; }
}
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on NetcodeHub.Packages.Extensions.Attributes.RequiredGuid:

Package Downloads
softinven.application.services

This Application handles the services and DTO aspect of the inventory management system

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 1,443 4/21/2024

We're excited to introduce NetcodeHubRequiredGuidAttribute, a custom validation attribute designed to enhance data validation in your applications.
This attribute ensures that Guid properties, such as unique identifiers, are properly set and not left at their default value.
Simply decorate your Guid properties with NetcodeHubRequiredGuidAttribute to enforce non-default values, ensuring data integrity and reliability.
Say goodbye to unexpected default values and hello to robust data validation with NetcodeHubRequiredGuidAttribute.