Skip to content

Commit 096a83a

Browse files
authored
Update README.md
1 parent 9da9914 commit 096a83a

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

README.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff 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#
6559
var day = Weekday.Monday;
@@ -77,17 +71,6 @@ var day = Weekday.Monday;
7771
Console.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

9376
Just add the following line at the end of the `OnModelCreating` method in your `DbContext` class and you are ready to go

0 commit comments

Comments
 (0)