I have a question, having simple context:
public DbSet<Current> Currents { get; set; } public DbSet<Event> Events { get; set; } public DbSet<ApplicationFile> ApplicationFile { get; set; } private readonly string dbPath; public SqliteContext(string filePath) { dbPath = filePath; } public SqliteContext() { dbPath = $@"{AppDomain.CurrentDomain.BaseDirectory}\application.db"; ApplicationFileMigration(); } private void ApplicationFileMigration() { Database.EnsureCreated(); } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { optionsBuilder.UseSqlite($@"Data Source={dbPath}"); } I want to create migration only on ApplicationFile entity and ignore Currents and Events, I know it is possible to do it with separate context, but is it possible in a single context, some kind of ignore annotation or default configuration?