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>
5353}
5454```
5555
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
6357
6458``` C#
6559var day = Weekday .Monday ;
@@ -77,17 +71,6 @@ var day = Weekday.Monday;
7771Console .WriteLine (day .Name );
7872```
7973
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-
9174#### EF Core configuration
9275
9376Just 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