File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -53,13 +53,7 @@ public sealed class Weekday : TypeSafeNameEnum<Weekday, int>
53
53
}
54
54
```
55
55
56
- Initialize the enum at program start
57
-
58
- ``` C#
59
- Initialize .InitEnumExt <Weekday >();
60
- ```
61
-
62
- then use it just like the native one
56
+ use it just like the native one
63
57
64
58
``` C#
65
59
var day = Weekday .Monday ;
@@ -77,17 +71,6 @@ var day = Weekday.Monday;
77
71
Console .WriteLine (day .Name );
78
72
```
79
73
80
- #### Initialization via assembly
81
-
82
- If you want to initialize all enums of an assembly at once, you can use
83
-
84
-
85
- ``` C#
86
- Assembly assembly = .. .
87
-
88
- Initialize .InitEnumExt (assembly );
89
- ```
90
-
91
74
#### EF Core configuration
92
75
93
76
Just add the following line at the end of the ` OnModelCreating ` method in your ` DbContext ` class and you are ready to go
You can’t perform that action at this time.
0 commit comments