fix: 修改CS模板,修复严重bug

main
Carson Lin 2022-09-22 15:18:23 +08:00
parent 70b5a9b061
commit e897d6b5c0
7 changed files with 17 additions and 20 deletions

View File

@ -7,7 +7,7 @@ using Bright.Serialization;
}}
{{cs_start_name_space_grace x.namespace_with_top_module}}
{{cs_start_name_space_grace x.namespace}}
public partial class {{name}}
{
{{~for table in tables ~}}
@ -45,4 +45,4 @@ public partial class {{name}}
partial void PostResolve();
}
{{cs_end_name_space_grace x.namespace_with_top_module}}
{{cs_end_name_space_grace x.namespace}}

View File

@ -10,8 +10,7 @@ using System.Text.Json;
hierarchy_export_fields = x.hierarchy_export_fields
}}
namespace {{x.namespace_with_top_module}}
{
{{cs_start_name_space_grace x.namespace_with_top_module}}
{{~if x.comment != '' ~}}
/// <summary>
@ -124,4 +123,4 @@ public {{x.cs_class_modifier}} partial class {{name}} : {{if parent_def_type}} {
partial void PostInit();
partial void PostResolve();
}
}
{{cs_end_name_space_grace x.namespace_with_top_module}}

View File

@ -10,8 +10,8 @@ using System.Text.Json;
value_type = x.value_ttype
}}
namespace {{x.namespace_with_top_module}}
{
{{cs_start_name_space_grace x.namespace_with_top_module}}
{{~if x.comment != '' ~}}
/// <summary>
@ -170,4 +170,4 @@ public sealed partial class {{name}}
partial void PostResolve();
}
}
{{cs_end_name_space_grace x.namespace_with_top_module}}

View File

@ -5,8 +5,8 @@ using System.Text.Json;
namespace = x.namespace
tables = x.tables
}}
namespace {{namespace}}
{
{{cs_start_name_space_grace x.namespace}}
public sealed partial class {{name}}
{
@ -45,4 +45,4 @@ public sealed partial class {{name}}
partial void PostResolve();
}
}
{{cs_end_name_space_grace x.namespace}}

View File

@ -10,8 +10,7 @@ using SimpleJSON;
hierarchy_export_fields = x.hierarchy_export_fields
}}
namespace {{x.namespace_with_top_module}}
{
{{cs_start_name_space_grace x.namespace_with_top_module}}
{{~if x.comment != '' ~}}
/// <summary>
@ -125,4 +124,4 @@ public {{x.cs_class_modifier}} partial class {{name}} : {{if parent_def_type}} {
partial void PostInit();
partial void PostResolve();
}
}
{{cs_end_name_space_grace x.namespace_with_top_module}}

View File

@ -10,8 +10,7 @@ using SimpleJSON;
value_type = x.value_ttype
}}
namespace {{x.namespace_with_top_module}}
{
{{cs_start_name_space_grace x.namespace_with_top_module}}
{{~if x.comment != '' ~}}
/// <summary>
@ -174,4 +173,4 @@ public sealed partial class {{name}}
partial void PostResolve();
}
}
{{cs_end_name_space_grace x.namespace_with_top_module}}

View File

@ -5,8 +5,8 @@ using SimpleJSON;
namespace = x.namespace
tables = x.tables
}}
namespace {{namespace}}
{
{{cs_start_name_space_grace x.namespace}}
public sealed partial class {{name}}
{
@ -45,4 +45,4 @@ public sealed partial class {{name}}
partial void PostResolve();
}
}
{{cs_end_name_space_grace x.namespace}}