Skip to content

Commit 47e82a6

Browse files
committed
Unit tests for Settings.TrimCharFields
1 parent 7a05062 commit 47e82a6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Generator.Tests.Unit/SingleDatabaseReverseEngineerTests.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,10 @@ public void ReverseEngineerSqlServer(string database, string singleDbContextSubN
176176
Settings.GenerateSeparateFiles = false;
177177
Settings.UseMappingTables = (templateType != TemplateType.EfCore2 && templateType != TemplateType.EfCore3);
178178
SetupSqlServer(database, connectionStringName, dbContextName, templateType, templateType == TemplateType.Ef6 ? GeneratorType.Ef6 : GeneratorType.EfCore, foreignKeyNamingStrategy);
179-
//Settings.DisableGeographyTypes = true;
179+
if(templateType == TemplateType.EfCore5) // Don't do all, as we want a mix of true/false for this field.
180+
Settings.TrimCharFields = true;
181+
else
182+
Settings.TrimCharFields = false;
180183

181184
Settings.Enumerations = new List<EnumerationSettings>
182185
{

0 commit comments

Comments
 (0)