I would like to only have one DbContext in my ASP.NET MVC project. How should I merge the default IdentityDbContext with my own code first DbContext? They are using the same database.
public class ApplicationDbContext : IdentityDbContext<ApplicationUser> { public ApplicationDbContext() : base("SignalRChat") { } } This is the default one provided in the IdentityModel.cs class.
Is it safe to do the following? And append my own DbSets?
public class ApplicationDbContext : IdentityDbContext<ApplicationUser> { public ApplicationDbContext() : base("SignalRChat") { } public DbSet<Student> Students { get; set; } public DbSet<Standard> Standards { get; set; } } Any advice is much appreciated!