diff --git a/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/appsettings.json b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/appsettings.json index 9a0be860ec..343a2253d4 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/appsettings.json +++ b/src/Identity/ApiAuthorization.IdentityServer/samples/ApiAuthSample/appsettings.json @@ -1,6 +1,6 @@ { "ConnectionStrings": { - "DefaultConnection": "DataSource=app.db" + "DefaultConnection": "DataSource=app.db;Cache=Shared" }, "IdentityServer": { "Clients": { diff --git a/src/MusicStore/samples/MusicStore/ForTesting/Mocks/StartupOpenIdConnectTesting.cs b/src/MusicStore/samples/MusicStore/ForTesting/Mocks/StartupOpenIdConnectTesting.cs index 677d93abdd..4dbd321653 100644 --- a/src/MusicStore/samples/MusicStore/ForTesting/Mocks/StartupOpenIdConnectTesting.cs +++ b/src/MusicStore/samples/MusicStore/ForTesting/Mocks/StartupOpenIdConnectTesting.cs @@ -46,7 +46,7 @@ namespace MusicStore // Add EF services to the services container // Add EF services to the services container services.AddDbContext(options => - options.UseSqlite("Data Source=MusicStore.db")); + options.UseSqlite("Data Source=MusicStore.db;Cache=Shared")); // Add Identity services to the services container services.AddIdentity() diff --git a/src/MusicStore/samples/MusicStore/ForTesting/Mocks/StartupSocialTesting.cs b/src/MusicStore/samples/MusicStore/ForTesting/Mocks/StartupSocialTesting.cs index 2bc26bbb51..28392e6205 100644 --- a/src/MusicStore/samples/MusicStore/ForTesting/Mocks/StartupSocialTesting.cs +++ b/src/MusicStore/samples/MusicStore/ForTesting/Mocks/StartupSocialTesting.cs @@ -46,7 +46,7 @@ namespace MusicStore // Add EF services to the services container services.AddDbContext(options => - options.UseSqlite("Data Source=MusicStore.db")); + options.UseSqlite("Data Source=MusicStore.db;Cache=Shared")); // Add Identity services to the services container services.AddIdentity() diff --git a/src/MusicStore/samples/MusicStore/Startup.cs b/src/MusicStore/samples/MusicStore/Startup.cs index 74aa6931b8..98b8168b10 100644 --- a/src/MusicStore/samples/MusicStore/Startup.cs +++ b/src/MusicStore/samples/MusicStore/Startup.cs @@ -39,7 +39,7 @@ namespace MusicStore // Add EF services to the services container services.AddDbContext(options => - options.UseSqlite("Data Source=MusicStore.db")); + options.UseSqlite("Data Source=MusicStore.db;Cache=Shared")); // Add Identity services to the services container services.AddIdentity() diff --git a/src/MusicStore/samples/MusicStore/StartupNtlmAuthentication.cs b/src/MusicStore/samples/MusicStore/StartupNtlmAuthentication.cs index 86860af5e5..94154900eb 100644 --- a/src/MusicStore/samples/MusicStore/StartupNtlmAuthentication.cs +++ b/src/MusicStore/samples/MusicStore/StartupNtlmAuthentication.cs @@ -57,7 +57,7 @@ namespace MusicStore // Add EF services to the services container services.AddDbContext(options => - options.UseSqlite("Data Source=MusicStore.db")); + options.UseSqlite("Data Source=MusicStore.db;Cache=Shared")); // Add Identity services to the services container services.AddIdentity() diff --git a/src/MusicStore/samples/MusicStore/StartupOpenIdConnect.cs b/src/MusicStore/samples/MusicStore/StartupOpenIdConnect.cs index e44deae3f7..b469fba48a 100644 --- a/src/MusicStore/samples/MusicStore/StartupOpenIdConnect.cs +++ b/src/MusicStore/samples/MusicStore/StartupOpenIdConnect.cs @@ -56,7 +56,7 @@ namespace MusicStore // Add EF services to the services container services.AddDbContext(options => - options.UseSqlite("Data Source=MusicStore.db")); + options.UseSqlite("Data Source=MusicStore.db;Cache=Shared")); // Add Identity services to the services container services.AddIdentity() diff --git a/src/Mvc/benchmarkapps/BasicApi/Startup.cs b/src/Mvc/benchmarkapps/BasicApi/Startup.cs index a7e4a0dac6..98a0b55ef4 100644 --- a/src/Mvc/benchmarkapps/BasicApi/Startup.cs +++ b/src/Mvc/benchmarkapps/BasicApi/Startup.cs @@ -92,7 +92,7 @@ namespace BasicApi _isSQLite = true; services .AddEntityFrameworkSqlite() - .AddDbContextPool(options => options.UseSqlite("Data Source=BasicApi.db")); + .AddDbContextPool(options => options.UseSqlite("Data Source=BasicApi.db;Cache=Shared")); break; case "SQLSERVER": diff --git a/src/Mvc/benchmarkapps/BasicViews/Startup.cs b/src/Mvc/benchmarkapps/BasicViews/Startup.cs index 53c561bd76..624a0d803f 100644 --- a/src/Mvc/benchmarkapps/BasicViews/Startup.cs +++ b/src/Mvc/benchmarkapps/BasicViews/Startup.cs @@ -73,7 +73,7 @@ namespace BasicViews _isSQLite = true; services .AddEntityFrameworkSqlite() - .AddDbContextPool(options => options.UseSqlite("Data Source=BasicViews.db")); + .AddDbContextPool(options => options.UseSqlite("Data Source=BasicViews.db;Cache=Shared")); break; case "SQLSERVER": diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/app.db b/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/app.db index ec163057f1..e1abab650a 100644 Binary files a/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/app.db and b/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/app.db differ diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/appsettings.json b/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/appsettings.json index 64291bf927..7210a062bf 100644 --- a/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/appsettings.json +++ b/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp/appsettings.json @@ -27,7 +27,7 @@ ////#if (UseLocalDB) // "DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=aspnet-BlazorServerWeb-CSharp-53bc9b9d-9d6a-45d4-8429-2a2761773502;Trusted_Connection=True;MultipleActiveResultSets=true" ////#else -// "DefaultConnection": "DataSource=app.db" +// "DefaultConnection": "DataSource=app.db;Cache=Shared" //#endif // }, //#endif diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/app.db b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/app.db index ec163057f1..e1abab650a 100644 Binary files a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/app.db and b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/app.db differ diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/appsettings.json b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/appsettings.json index 7b2e4ddbd8..0de74b725e 100644 --- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/appsettings.json +++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/appsettings.json @@ -27,7 +27,7 @@ ////#if (UseLocalDB) // "DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=aspnet-Company.WebApplication1-53bc9b9d-9d6a-45d4-8429-2a2761773502;Trusted_Connection=True;MultipleActiveResultSets=true" ////#else -// "DefaultConnection": "DataSource=app.db" +// "DefaultConnection": "DataSource=app.db;Cache=Shared" //#endif // }, //#endif diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/app.db b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/app.db index ec163057f1..e1abab650a 100644 Binary files a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/app.db and b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/app.db differ diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/appsettings.json b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/appsettings.json index 7b2e4ddbd8..0de74b725e 100644 --- a/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/appsettings.json +++ b/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/appsettings.json @@ -27,7 +27,7 @@ ////#if (UseLocalDB) // "DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=aspnet-Company.WebApplication1-53bc9b9d-9d6a-45d4-8429-2a2761773502;Trusted_Connection=True;MultipleActiveResultSets=true" ////#else -// "DefaultConnection": "DataSource=app.db" +// "DefaultConnection": "DataSource=app.db;Cache=Shared" //#endif // }, //#endif diff --git a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/Angular-CSharp/appsettings.json b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/Angular-CSharp/appsettings.json index 8861bc9d6c..ac3327a7a9 100644 --- a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/Angular-CSharp/appsettings.json +++ b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/Angular-CSharp/appsettings.json @@ -4,15 +4,15 @@ ////#if (UseLocalDB) // "DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=aspnet-Company.WebApplication1-53bc9b9d-9d6a-45d4-8429-2a2761773502;Trusted_Connection=True;MultipleActiveResultSets=true" ////#else -// "DefaultConnection": "DataSource=app.db" +// "DefaultConnection": "DataSource=app.db;Cache=Shared" ////#endif // }, ////#endif "Logging": { "LogLevel": { - "Default": "Information", - "Microsoft": "Warning", - "Microsoft.Hosting.Lifetime": "Information" + "Default": "Information", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" } }, ////#if (IndividualLocalAuth) diff --git a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/React-CSharp/appsettings.json b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/React-CSharp/appsettings.json index 8861bc9d6c..ac3327a7a9 100644 --- a/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/React-CSharp/appsettings.json +++ b/src/ProjectTemplates/Web.Spa.ProjectTemplates/content/React-CSharp/appsettings.json @@ -4,15 +4,15 @@ ////#if (UseLocalDB) // "DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=aspnet-Company.WebApplication1-53bc9b9d-9d6a-45d4-8429-2a2761773502;Trusted_Connection=True;MultipleActiveResultSets=true" ////#else -// "DefaultConnection": "DataSource=app.db" +// "DefaultConnection": "DataSource=app.db;Cache=Shared" ////#endif // }, ////#endif "Logging": { "LogLevel": { - "Default": "Information", - "Microsoft": "Warning", - "Microsoft.Hosting.Lifetime": "Information" + "Default": "Information", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" } }, ////#if (IndividualLocalAuth)