Skip to content

Commit

Permalink
added example for enum serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
morrisjdev committed Mar 18, 2020
1 parent 87f6724 commit 5af0e62
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Example/Data/Entities/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public User()
[NotMapped]
public string Ignored { get; set; }

public UserType Type { get; set; }

public Guid Test2 { get; set; }

[NotMapped]
Expand All @@ -47,5 +49,10 @@ public string[] VContents
public virtual List<Content> Contents { get; set; }

public virtual List<Setting> Settings { get; set; }

public enum UserType
{
Admin, User, Manager
}
}
}

0 comments on commit 5af0e62

Please sign in to comment.