1 parent 2da8cad commit 2c77c61Copy full SHA for 2c77c61
1 file changed
src/schemaforge/generators/ef_generator.py
@@ -1,4 +1,5 @@
1
"""Generator: SchemaForge IR → C# Entity Framework Core entity classes."""
2
+
3
from __future__ import annotations
4
5
from ..ir import Column, ColumnType, Schema
@@ -81,7 +82,7 @@ def _property_def(self, col: Column) -> str:
81
82
if col.type == ColumnType.DECIMAL:
83
p = col.type_args.get("precision", 10)
84
s = col.type_args.get("scale", 2)
- annotations.append(f"[Column(TypeName = \"decimal({p},{s})\")]")
85
+ annotations.append(f'[Column(TypeName = "decimal({p},{s})")]')
86
87
if col.unique and not col.primary_key:
88
# EF Index attribute
0 commit comments