So I made a new model called notifications and added
public virtual DBSet<Notification> Notifications { get; set; }
to my context file. So I have:
public class myContext : IdentityDbContext
{
// ... my existing tables and models
public virtual DBSet<Notification> Notifications { get; set; }
}
I noticed that theres an onConfiguring() in this file thats not being used and an OnModelCreating() which seems to be used to map Identity stuff to my db Tables like IdentityUser.
Besides adding that new line in my context class, what else would I have to do to be able to use my new table? I noticed that some of the existing tables aren't mentioned in OnModelCreating() so I'm not sure how they were added. Would I have to physically add a new table in my db or does entity handle this some how.
Notificationrelated to any other existing entity class? Besides that its always good to use the applicable EF version tag.