Added Microsoft.Iris.Debug.DataMappingModel

This commit is contained in:
Yoshi Askharoun
2022-06-12 23:26:39 -05:00
parent 1db829f803
commit 6d48431191
2 changed files with 22 additions and 3 deletions
+21 -2
View File
@@ -1,5 +1,11 @@
using System.Collections.Generic;
#if NET40_OR_GREATER || NET6_0_OR_GREATER
using DataMappingModelsList = System.Collections.ObjectModel.ObservableCollection<Microsoft.Iris.Debug.DataMappingModel>;
#else
using DataMappingModelsList = System.Collections.Generic.List<Microsoft.Iris.Debug.DataMappingModel>;
#endif
namespace Microsoft.Iris.Debug
{
public class DebugSettings
@@ -10,8 +16,7 @@ namespace Microsoft.Iris.Debug
public TraceSettings TraceSettings { get; } = TraceSettings.Current;
public bool GenerateDataMappingModels { get; set; } = true;
public List<(string Provider, string Type, string Code)> DataMappingModels { get; }
= new List<(string Provider, string Type, string Code)>();
public DataMappingModelsList DataMappingModels { get; } = new DataMappingModelsList();
public Bridge Bridge { get; } =
#if OPENZUNE
@@ -20,4 +25,18 @@ namespace Microsoft.Iris.Debug
new();
#endif
}
public class DataMappingModel
{
internal DataMappingModel(string provider, string type, string generatedCode)
{
Provider = provider;
Type = type;
GeneratedCode = generatedCode;
}
public string Provider { get; internal set; }
public string Type { get; internal set; }
public string GeneratedCode { get; internal set; }
}
}