File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Zbu.ModelsBuilder/Configuration Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ private static void Write()
35
35
36
36
public static void Clear ( )
37
37
{
38
+ if ( Config . FlagOutOfDateModels == false ) return ;
38
39
var path = GetFlagPath ( ) ;
39
40
if ( path == null || ! File . Exists ( path ) ) return ;
40
41
File . Delete ( path ) ;
@@ -49,6 +50,7 @@ public static bool IsOutOfDate
49
50
{
50
51
get
51
52
{
53
+ if ( Config . FlagOutOfDateModels == false ) return false ;
52
54
var path = GetFlagPath ( ) ;
53
55
return path != null && File . Exists ( path ) ;
54
56
}
Original file line number Diff line number Diff line change @@ -44,6 +44,10 @@ static Config()
44
44
45
45
if ( count > 1 )
46
46
throw new Exception ( "Configuration error: you can enable only one of Dll, AppCode or AppData models at a time." ) ;
47
+
48
+ // not flagging if not generating, or live
49
+ if ( count == 0 || EnableLiveModels )
50
+ FlagOutOfDateModels = false ;
47
51
}
48
52
49
53
// note: making setters internal below for testing purposes
You can’t perform that action at this time.
0 commit comments