Skip to content

Commit 9304203

Browse files
committed
Update connection string
1 parent 3e0ee87 commit 9304203

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tester.Integration.EFCore7/EfrpgTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
469469
{
470470
if (!optionsBuilder.IsConfigured)
471471
{
472-
optionsBuilder.UseSqlServer(@"Data Source=(local);Initial Catalog=EfrpgTest;Integrated Security=True;Application Name=EntityFramework Reverse POCO Generator", x => x.UseNetTopologySuite().UseHierarchyId());
472+
optionsBuilder.UseSqlServer(@"Data Source=(local);Initial Catalog=EfrpgTest;Integrated Security=True;Application Name=EntityFramework Reverse POCO Generator;TrustServerCertificate=true", x => x.UseNetTopologySuite().UseHierarchyId());
473473
optionsBuilder.UseLazyLoadingProxies();
474474
}
475475
}

Tester.Integration.EFCore7/EfrpgTest.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Settings.GeneratorType = GeneratorType.EfCore;
1616
Settings.UseMappingTables = true; // Set to false for EfCore. EFCore will add support for this in v3 at some point, so please set this to false. If true, mapping will be used and no mapping tables will be generated. If false, all tables will be generated.
1717
Settings.FileManagerType = FileManagerType.EfCore; // .NET project = VisualStudio; .NET Core project = EfCore; No output (testing only) = Null
18-
Settings.ConnectionString = "Data Source=(local);Initial Catalog=EfrpgTest;Integrated Security=True;Application Name=EntityFramework Reverse POCO Generator";
18+
Settings.ConnectionString = "Data Source=(local);Initial Catalog=EfrpgTest;Integrated Security=True;Application Name=EntityFramework Reverse POCO Generator;TrustServerCertificate=true";
1919
Settings.ConnectionStringName = "MyDbContext"; // ConnectionString key as specified in your app.config/web.config/appsettings.json
2020
Settings.DbContextName = "V7EfrpgTestDbContext"; // Class name for the DbContext to be generated. Note: If generating separate files, please give the db context a different name from this tt filename.
2121
Settings.OnConfiguration = OnConfiguration.ConnectionString; // EFCore only. Determines the code generated within DbContext.OnConfiguration(). Please read https://github.com/sjh37/EntityFramework-Reverse-POCO-Code-First-Generator/wiki/OnConfiguration Settings.GenerateSeparateFiles = false;

0 commit comments

Comments
 (0)