© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
6 replies
Mihail Mihov

Do I add my Models in the IdentityDbContext from the template?

I'm trying to create a project, where I'll have two types of users (regular and admin) and I'll have a bunch of other models. I am using asp.net core 8 and created my project with the
blazor --auth Individual
blazor --auth Individual
options. It generated for me an
ApplicationDbContext
ApplicationDbContext
which inherits from
IdentityDbContext
IdentityDbContext
. Should I add my
DbSet
DbSet
s in this class or should I use a separate context? Ideally I'd want to have separate levels of access for the different user types.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

What blazor template do I start from...
C#CC# / help
11mo ago
How do I use models from Project A in Project B?
C#CC# / help
2y ago
Shadow Prop Error with IdentityDbContext
C#CC# / help
2y ago
❔ what template do i use
C#CC# / help
4y ago