コード例 #1
0
        private void ForceWorkflowAuth()
        {
            var notAuthed = _WorkflowDb.KeyReleaseWorkflowStates
                            .Where(x => x.AuthorisedByCaregiver == null)
                            .ToList();

            Console.WriteLine($"Found: {notAuthed.Count}.");

            foreach (var i in notAuthed)
            {
                i.LabConfirmationId       = null;
                i.AuthorisedByCaregiver   = _Dtp.Snapshot;
                i.StartDateOfTekInclusion = _Dtp.Snapshot.Date.AddDays(-1);
            }

            _WorkflowDb.BulkUpdate(notAuthed);
        }