Skip to content

Commit

Permalink
Update README.md (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafek1241 authored Feb 2, 2022
1 parent 79e1a0d commit dc021a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ protected override void OnModelCreating(ModelBuilder builder)
}
```

Remember, you need to implement your own parameterless constructor to make it works with db context. See [#103 issue](https://github.com/ardalis/SmartEnum/issues/103).

#### Using SmartEnum.EFCore

If you have installed `Ardalis.SmartEnum.EFCore` it is sufficient to add the following line at the end of the `OnModelCreating` method:
Expand Down

0 comments on commit dc021a3

Please sign in to comment.