aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL/ObservableEntityDTO.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2019-12-18 21:05:38 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2019-12-18 21:05:38 +0200
commit44af6a05f13cff1defd8ef4a01c4ecdbd7833c33 (patch)
tree4747a57757f8206bdc97826a9febf1685f0cf341 /Software/Visual_Studio/Tango.BL/ObservableEntityDTO.cs
parent68916b0c7e3322ff1ca8b45ed789973a23ccac51 (diff)
downloadTango-44af6a05f13cff1defd8ef4a01c4ecdbd7833c33.tar.gz
Tango-44af6a05f13cff1defd8ef4a01c4ecdbd7833c33.zip
Changed DTO's to include byte[] when generated but mapped by reference.
More improvements to action logs.
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/ObservableEntityDTO.cs')
-rw-r--r--Software/Visual_Studio/Tango.BL/ObservableEntityDTO.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Tango.BL/ObservableEntityDTO.cs b/Software/Visual_Studio/Tango.BL/ObservableEntityDTO.cs
index 720d6b9b7..ee8d2f40f 100644
--- a/Software/Visual_Studio/Tango.BL/ObservableEntityDTO.cs
+++ b/Software/Visual_Studio/Tango.BL/ObservableEntityDTO.cs
@@ -51,7 +51,7 @@ namespace Tango.BL
var observableProp = typeof(T).GetProperty(prop.Name);
if (observableProp != null)
{
- if (prop.PropertyType.IsPrimitive || prop.PropertyType.IsValueType || prop.PropertyType == typeof(String))
+ if (prop.PropertyType.IsPrimitive || prop.PropertyType.IsValueType || prop.PropertyType == typeof(String) || prop.PropertyType == typeof(byte[]))
{
prop.SetValue(dto, observableProp.GetValue(observable));
}
@@ -99,7 +99,7 @@ namespace Tango.BL
var observableProp = typeof(T).GetProperty(prop.Name);
if (observableProp != null)
{
- if (prop.PropertyType.IsPrimitive || prop.PropertyType.IsValueType || prop.PropertyType == typeof(String))
+ if (prop.PropertyType.IsPrimitive || prop.PropertyType.IsValueType || prop.PropertyType == typeof(String) || prop.PropertyType == typeof(byte[]))
{
observableProp.SetValue(observable, prop.GetValue(this));
}
@@ -174,7 +174,7 @@ namespace Tango.BL
var observableProp = typeof(T).GetProperty(prop.Name);
if (observableProp != null)
{
- if (prop.PropertyType.IsPrimitive || prop.PropertyType.IsValueType || prop.PropertyType == typeof(String))
+ if (prop.PropertyType.IsPrimitive || prop.PropertyType.IsValueType || prop.PropertyType == typeof(String) || prop.PropertyType == typeof(byte[]))
{
var observableValue = observableProp.GetValue(observable);
var dtoValue = prop.GetValue(this);