// With multiple Active Result Sets (MARS) "Server=(localdb)\MSSQLLocalDB;Database=MyDatabase;Trusted_Connection=true;MultipleActiveResultSets=true;"
:
// DbContext class public class ApplicationDbContext : DbContext { public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options) { }
: sqllocaldb v (shows available versions) or sqllocaldb i (lists instances). Start an instance : sqllocaldb start mssqllocaldb Create a new instance : sqllocaldb create "MyNewInstance" When to Transition Away from LocalDB
While LocalDB is excellent for rapid prototyping, it is designed to be replaced as an application moves closer to deployment.
for production. It lacks many of the manageability and performance features of standard SQL Server. How to Use LocalDB in Development