示例#1
0
        void WriteEndDate(DateTime end)
        {
            if (_NoPeriod)
            {
                throw new InvalidOperationException("Can't save job period, cos no period was setted");
            }
            var single = Logic.GetAll <tblBatchCreationManagerData>().FirstOrDefault();

            if (single == null)
            {
                single = Logic.Create <tblBatchCreationManagerData>();
            }
            single.LastStartTime = periodStart;
            single.LastEndTime   = periodStart;
            Logic.Save(single);
        }