Skip to content

Commit 7973905

Browse files
committed
Case 31. Escape backslash characters in column names
1 parent 801965d commit 7973905

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

EntityFramework.Reverse.POCO.Generator/EF.Reverse.POCO.Core.ttinclude

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@
807807
if(IsPrimaryKey && !IsIdentity && !IsStoreGenerated)
808808
databaseGeneratedOption = ".HasDatabaseGeneratedOption(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.None)";
809809

810-
Config = string.Format("Property(x => x.{0}).HasColumnName(\"{1}\"){2}{3}{4}{5}{6}{7}{8}{9}{10};", NameHumanCase, Name,
810+
Config = string.Format("Property(x => x.{0}).HasColumnName(@\"{1}\"){2}{3}{4}{5}{6}{7}{8}{9}{10};", NameHumanCase, Name,
811811
(IsNullable) ? ".IsOptional()" : ".IsRequired()",
812812
(IsFixedLength || IsRowVersion) ? ".IsFixedLength()" : "",
813813
(IsUnicode) ? string.Empty : ".IsUnicode(false)",

0 commit comments

Comments
 (0)