private void detach_Tasks(Task entity) { this.SendPropertyChanging(); entity.SiteMap = null; }
public static Task CreateOrUpdateTask(string cmd, string taskName, string url) { var path = GetSitePath(url); if (path == null) throw new Exception("Sitemap path does not exist!"); var task = GetTask(url, cmd); if (task == null) { var dc = DCFactory.GetDataContext<SecurityDataContext>(); task = new Task(); task.PathId = path.PathId; dc.Tasks.InsertOnSubmit(task); } task.CommandName = cmd.Trim(); task.TaskName = taskName.Trim(); return task; }
private void attach_Tasks(Task entity) { this.SendPropertyChanging(); entity.SiteMap = this; }