upizs / PestControl

Self-made bug tracker for personal use. Implementing ASP.NET Core .NET 5 with razor pages, Entity Framework 5.0.9 and AspNetCore Identity 2.2.0
7 stars 0 forks source link

Naming of DbContext #4

Open Nobonex opened 2 years ago

Nobonex commented 2 years ago

https://github.com/upizs/PestControl/blob/d82b6e941e797fba15f85d0c73399e37ab32836a/TicketControl.Data/Data/AuthDbContext.cs#L9

Naming of this would indicate that this Context is to be used solely for Authentication/Authorisation.

upizs commented 2 years ago

@Nobonex Thanks for pointing it out. For some weird reason I named it AuthDB, I think it was because it inherited from IdentityContext and I thought I'm gonna have to create two, but turned out it worked just fine, and later on I was just afraid to rename it. 😄 But I am a grown-up developer now, I will find a way to do it safely :)