Handy-Hangout-Studios / Norm

GNU General Public License v3.0
2 stars 1 forks source link

DbContext should not be added manually #30

Closed jeffreyladd closed 3 years ago

jeffreyladd commented 3 years ago

https://github.com/Handy-Hangout-Studios/Norm/blob/193e84a64815263f0f34aadcb73b3258ff5efbbb/Norm/Program.cs#L109

The DbContext should be added to DI via AddDbContext as you will also be able to pass in all the possible EF base options but also any adapter options in one call keeping it all clean