Example #1
0
        public BatchHistory createBatchHistory(
            int id,
            int systemId,
            DateTime runStart,
            DateTime runEnd,
            string filename      = null,
            string message       = "Success",
            BatchOutcome outcome = BatchOutcome.Success,
            EntityAction action  = EntityAction.InsertOnSubmit
            )
        {
            var entity = Factory.CreateBatchHistory(id, systemId, runStart, runEnd, filename, message, outcome);

            DbAction(entity, action);

            return(entity);
        }
Example #2
0
        public static BatchHistory CreateBatchHistory(
            int id,
            int systemId,
            DateTime runStart,
            DateTime runEnd,
            string filename      = null,
            string message       = "Success",
            BatchOutcome outcome = BatchOutcome.Success
            )
        {
            var entity = new BatchHistory
            {
                Id       = id,
                SystemId = systemId,
                RunStart = runStart,
                RunEnd   = runEnd,
                Filename = filename,
                Message  = message,
                Outcome  = (int)outcome
            };

            return(entity);
        }