fix settings binding to instance

pull/1/head
Ogoun 5 years ago
parent 52c689c832
commit afe288ac88

@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Data.SQLite;
using System.Text;
using System.Data.SQLite;
using System.Threading;
using ZeroLevel.SqLite;

@ -1,13 +1,12 @@
using System;
using System.Collections.Generic;
using System.Data.SQLite;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading;
namespace ZeroLevel.SqLite.Model
namespace ZeroLevel.SqLite
{
/// <summary>
/// Хранит данные указанное число дней, и позволяет выполнить проверку наличия данных, для отбрасывания дубликатов

@ -1,10 +1,8 @@
using System;
using System.Collections.Generic;
using System.Data.SQLite;
using System.IO;
using System.Threading;
using ZeroLevel.Models;
using ZeroLevel.Services.FileSystem;
namespace ZeroLevel.SqLite
{

@ -524,7 +524,9 @@ namespace ZeroLevel.Services.Config
}
else
{
member.Setter(instance, First(member.Name));
var item = First(member.Name);
var itemType = member.ClrType;
member.Setter(instance, StringToTypeConverter.TryConvert(item, itemType));
}
break;
default: // array, or first
@ -569,7 +571,9 @@ namespace ZeroLevel.Services.Config
}
else
{
member.Setter(instance, First(member.Name));
var item = First(member.Name);
var itemType = member.ClrType;
member.Setter(instance, StringToTypeConverter.TryConvert(item, itemType));
}
break;
}

Loading…
Cancel
Save

Powered by TurnKey Linux.