public void AddUnrolled(Effort eff) { EffortRollout effRoll = new EffortRollout(); effRoll.Effort = eff; _effortRollouts.Add(effRoll); }
public EffortRollout Add(EffortRollout obj) { obj.BusinessCollection = this; if (this.IsChildOfRollout){ obj.Rollout = (Rollout)this.Parent; } if (this.IsChildOfEffort){ obj.Effort = (Effort)this.Parent; } List.Add(obj); return obj; }
public bool Contains(EffortRollout obj) { foreach(EffortRollout child in List) { if (obj.Equals(child)){ return true; } } return false; }
public EffortRollouts(Rollout parent) { EffortRollout obj; this.Parent = parent; using(MySqlConnection conn = Connections.Inst.item("QED_DB").MySqlConnection){ using(MySqlDataReader dr = MySqlDBLayer.LoadWhereColumnIs(conn, _table, "rollId", parent.Id)){ while(dr.Read()) { obj = new EffortRollout(dr); obj.BusinessCollection = this; List.Add(obj); } } } }