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
<PackageReference Include="NetcodeHub.Packages.Extensions.Attributes.RequiredGuid" Version="1.0.0" />
paket add NetcodeHub.Packages.Extensions.Attributes.RequiredGuid --version 1.0.0
#r "nuget: NetcodeHub.Packages.Extensions.Attributes.RequiredGuid, 1.0.0"
// 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 | 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 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,302 | 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.