Skip to content

Commit

Permalink
Add Colour table for enum test
Browse files Browse the repository at this point in the history
  • Loading branch information
sjh37 committed Jan 20, 2022
1 parent 1765312 commit 2009529
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions Tester.Integration.EFCore6/EnumOnly.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ namespace Tester.Integration.EFCore6
{
#region Enumerations

[GeneratedCode("EF.Reverse.POCO.Generator", "v3.6.0")]
public enum Colour
{
Red = 1,
Green = 2,
Blue = 3,
}

[GeneratedCode("EF.Reverse.POCO.Generator", "v3.6.0")]
public enum DaysOfWeek
{
Expand Down
8 changes: 4 additions & 4 deletions Tester.Integration.EFCore6/EnumOnly.tt
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@
},
new EnumerationSettings
{
Name = "CarOptions",
Table = "car_options",
NameField = "enum_name",
ValueField = "value"
Name = "Colour",
Table = "Colour",
NameField = "Name",
ValueField = "Id"
}
// Code will be generated as:
// public enum Name
Expand Down

0 comments on commit 2009529

Please sign in to comment.