Skip to content

Commit 5af0e62

Browse files
committed
added example for enum serialization
1 parent 87f6724 commit 5af0e62

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Example/Data/Entities/User.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public User()
2525
[NotMapped]
2626
public string Ignored { get; set; }
2727

28+
public UserType Type { get; set; }
29+
2830
public Guid Test2 { get; set; }
2931

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

4951
public virtual List<Setting> Settings { get; set; }
52+
53+
public enum UserType
54+
{
55+
Admin, User, Manager
56+
}
5057
}
5158
}

0 commit comments

Comments
 (0)