Made DataMappingModels available on net35

This commit is contained in:
Yoshi Askharoun
2022-06-12 23:16:28 -05:00
parent 973855f5d5
commit 1db829f803
2 changed files with 0 additions and 4 deletions
@@ -9,11 +9,9 @@ namespace Microsoft.Iris.Debug
public List<System.Xml.XmlDocument> DecompileResults { get; } = new List<System.Xml.XmlDocument>(); public List<System.Xml.XmlDocument> DecompileResults { get; } = new List<System.Xml.XmlDocument>();
public TraceSettings TraceSettings { get; } = TraceSettings.Current; public TraceSettings TraceSettings { get; } = TraceSettings.Current;
#if OPENZUNE
public bool GenerateDataMappingModels { get; set; } = true; public bool GenerateDataMappingModels { get; set; } = true;
public List<(string Provider, string Type, string Code)> DataMappingModels { get; } public List<(string Provider, string Type, string Code)> DataMappingModels { get; }
= new List<(string Provider, string Type, string Code)>(); = new List<(string Provider, string Type, string Code)>();
#endif
public Bridge Bridge { get; } = public Bridge Bridge { get; } =
#if OPENZUNE #if OPENZUNE
@@ -496,12 +496,10 @@ namespace Microsoft.Iris.Markup
} }
dataMappingsTable[index1] = markupDataMapping; dataMappingsTable[index1] = markupDataMapping;
#if OPENZUNE
if (Application.DebugSettings.GenerateDataMappingModels) if (Application.DebugSettings.GenerateDataMappingModels)
Application.DebugSettings.DataMappingModels.Add( Application.DebugSettings.DataMappingModels.Add(
(markupDataMapping.Provider, markupDataMapping.TargetType.Name, markupDataMapping.GenerateModelCode()) (markupDataMapping.Provider, markupDataMapping.TargetType.Name, markupDataMapping.GenerateModelCode())
); );
#endif
} }
_loadResultTarget.SetDataMappingsTable(dataMappingsTable); _loadResultTarget.SetDataMappingsTable(dataMappingsTable);
} }