Skip to content

Commit

Permalink
fix: data annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobritodev committed Aug 25, 2022
1 parent 29c09e4 commit a03d0c0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,35 @@
using Fido2NetLib.Objects;
using System.ComponentModel.DataAnnotations;

namespace NetDevPack.Fido2.EntityFramework.Store.Model;

public class StoredCredential
{
[Key]
public int Id { get; set; }

[Required]
public string Username { get; set; }
public byte[] UserId { get; set; }

public byte[]? UserId { get; set; }

[Required]
public byte[] PublicKey { get; set; }

[Required]
public byte[] PublicKeyId { get; set; }

[Required]
public byte[] UserHandle { get; set; }

public uint SignatureCounter { get; set; }
public string CredType { get; set; }
public string? CredType { get; set; }
public DateTime RegDate { get; set; }
public Guid AaGuid { get; set; }


public byte[] PublicKeyId { get; set; }

public PublicKeyCredentialType? Type { get; set; }
public string Transports { get; set; }
public string? Transports { get; set; }

public StoredCredential SetUsername(string username)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Authors>Bruno Brito</Authors>
<PackageIconUrl>https://raw.githubusercontent.com/NetDevPack/NetDevPack/master/assets/IconNuget.png</PackageIconUrl>
<PackageTags>Fido2 EntityFramework EF</PackageTags>
Expand Down

0 comments on commit a03d0c0

Please sign in to comment.