public void Triggers(string currentTime) { var db = new CoreToWorkflowEntities(); var change = db.tableTracks.Add(new tableTracks()); change.CurrentTime = currentTime; db.SaveChanges(); }
protected override void Execute(CodeActivityContext context) { var db = new CoreToWorkflowEntities(); var change = db.tableTracks.Add(new tableTracks()); change.CurrentTime = CurrentTime.Get(context); change.IdTableWorkflow = IdWorkflow.Get(context); db.SaveChanges(); }