cb model changes

This commit is contained in:
Christian
2019-11-14 16:47:23 +01:00
parent a174d281ef
commit a0fb08cf97
2 changed files with 12 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
using BS.Shared.DataContracts;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
using System.IO;
using System.Linq;
@@ -19,7 +20,16 @@ namespace BeWo.Data.ICF
{
try
{
_File = XDocument.Load(@"D:\Projects\BeWoPlaner\BeWo\Data\ICF\icf.xml");
string file = ConfigurationManager.AppSettings.Get("ICFFile");
if (String.IsNullOrEmpty(file) ||
!File.Exists(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"bin\ICF\" + file)))
{
file = "icf.xml";
}
file = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"bin\ICF\" + file);
_File = XDocument.Load(file);
//_File = XDocument.Load(@"D:\Projects\BeWoPlaner\BeWo\Data\ICF\icf.xml");
Debug.WriteLine("Dokument geladen");
_Root = _File.Descendants("Class").Where(x => x.Attribute("code")?.Value == "d").First();
Debug.WriteLine("Root gefunden");

View File

@@ -0,0 +1 @@
ALTER TABLE `valuelistentry2object` ADD COLUMN `Rating` BIGINT(19) NULL DEFAULT NULL;