【db】修复 db生成的多态代码有编译错误的bug
parent
5f07daa657
commit
17f7fc5b1b
|
|
@ -157,8 +157,9 @@ Options:
|
||||||
|
|
||||||
if (string.IsNullOrWhiteSpace(options.WatchDir))
|
if (string.IsNullOrWhiteSpace(options.WatchDir))
|
||||||
{
|
{
|
||||||
Environment.Exit(GenOnce(options, profile));
|
int exitCode = GenOnce(options, profile);
|
||||||
profile.EndPhaseAndLog();
|
profile.EndPhaseAndLog();
|
||||||
|
Environment.Exit(exitCode);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -222,7 +223,7 @@ Options:
|
||||||
int exitCode;
|
int exitCode;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
profile.StartPhase("generation");
|
||||||
profile.StartPhase("connect server");
|
profile.StartPhase("connect server");
|
||||||
var conn = GenClient.Start(options.Host, options.Port, ProtocolStub.Factories);
|
var conn = GenClient.Start(options.Host, options.Port, ProtocolStub.Factories);
|
||||||
|
|
||||||
|
|
@ -236,6 +237,7 @@ Options:
|
||||||
profile.StartPhase("gen job");
|
profile.StartPhase("gen job");
|
||||||
exitCode = SubmitGenJob(options);
|
exitCode = SubmitGenJob(options);
|
||||||
profile.EndPhaseAndLog();
|
profile.EndPhaseAndLog();
|
||||||
|
profile.EndPhaseAndLog();
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ using Bright.Serialization;
|
||||||
namespace {{x.namespace_with_top_module}}
|
namespace {{x.namespace_with_top_module}}
|
||||||
{
|
{
|
||||||
|
|
||||||
public interface {{readonly_name}} {{if parent_def_type}}: IReadOnly{{x.parent}} {{end}}
|
public interface {{readonly_name}} {{if parent_def_type}}: IReadOnly{{x.parent_def_type.name}} {{end}}
|
||||||
{
|
{
|
||||||
{{~ for field in fields~}}
|
{{~ for field in fields~}}
|
||||||
{{db_cs_readonly_define_type field.ctype}} {{field.cs_style_name}} {get;}
|
{{db_cs_readonly_define_type field.ctype}} {{field.cs_style_name}} {get;}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue