コード例 #1
0
        public void Triggers(string currentTime)
        {
            var db     = new CoreToWorkflowEntities();
            var change = db.tableTracks.Add(new tableTracks());

            change.CurrentTime = currentTime;
            db.SaveChanges();
        }
コード例 #2
0
        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();
        }