소스 검색

Let's sanitize namespace as well

Piotr Czajkowski 1 년 전
부모
커밋
0774d71ead
2개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      CodeGenerators/CodeGenerators/ClassRecordGenerator.cs
  2. 6 0
      CodeGenerators/GeneratorForExcelORM/GeneratorCmd.cs

+ 1 - 1
CodeGenerators/CodeGenerators/ClassRecordGenerator.cs

@@ -12,7 +12,7 @@ public class ClassRecordGenerator : IGenerator
 
     public ClassRecordGenerator(string namespaceName, string name, bool isRecord = false)
     {
-        this.namespaceName = namespaceName;
+        this.namespaceName = Helpers.SanitizeName(namespaceName);
         this.name = Helpers.SanitizeName(name);
         this.isRecord = isRecord;
     }

+ 6 - 0
CodeGenerators/GeneratorForExcelORM/GeneratorCmd.cs

@@ -0,0 +1,6 @@
+namespace GeneratorForExcelORM;
+
+public class GeneratorCmd
+{
+    
+}