Exemplo n.º 1
0
        private void FixupProject(Project previousValue)
        {
            if (previousValue != null && previousValue.ProjectSkills.Contains(this))
            {
                previousValue.ProjectSkills.Remove(this);
            }

            if (Project != null)
            {
                if (!Project.ProjectSkills.Contains(this))
                {
                    Project.ProjectSkills.Add(this);
                }
                if (ProjectId != Project.ProjectId)
                {
                    ProjectId = Project.ProjectId;
                }
            }
        }
Exemplo n.º 2
0
 public ProjectPresentable(Project project)
 {
     _base = project;
 }
Exemplo n.º 3
0
        private void FixupProject(Project previousValue)
        {
            if (previousValue != null && previousValue.History.Contains(this))
            {
                previousValue.History.Remove(this);
            }

            if (Project != null)
            {
                if (!Project.History.Contains(this))
                {
                    Project.History.Add(this);
                }
                if (ProjectId != Project.ProjectId)
                {
                    ProjectId = Project.ProjectId;
                }
            }
            else if (!_settingFK)
            {
                ProjectId = null;
            }
        }