예제 #1
0
        public static LoadProcess Read(int?loadProcessKey)
        {
            var sql = new ReadLoadProcessTableTask(loadProcessKey);

            sql.Execute();
            return(sql.LoadProcess);
        }
예제 #2
0
        public static LoadProcess ReadWithOption(ReadOptions option)
        {
            var sql = new ReadLoadProcessTableTask()
            {
                ReadOption = option
            };

            sql.Execute();
            return(sql.LoadProcess);
        }
예제 #3
0
        public static List <LoadProcess> ReadAll()
        {
            var sql = new ReadLoadProcessTableTask()
            {
                ReadOption = ReadOptions.ReadAllProcesses
            };

            sql.Execute();
            return(sql.AllLoadProcesses);
        }
예제 #4
0
        public override void Execute()
        {
            //TODO umschreiben in eine Zeile?
            var read = new ReadLoadProcessTableTask()
            {
                ReadOption = ReadOptions.ReadAllProcesses
            };

            read.Execute();
            List <LoadProcess> logEntries = read.AllLoadProcesses;

            JSON = JsonConvert.SerializeObject(logEntries, new JsonSerializerSettings {
                Formatting        = Formatting.Indented,
                ContractResolver  = new CamelCasePropertyNamesContractResolver(),
                NullValueHandling = NullValueHandling.Ignore
            });
        }