public AssignmentSchedule GetObjectByKey(KeyValuePair <string, long> keypair) { if (this.Contains(keypair) == false) { return(null); } AssignmentSchedule ob = this[keypair]; return((AssignmentSchedule)ob); }
public AssignmentSchedule GetObjectByKey(object keypair) { if (this.Contains(GetKey(keypair)) == false) { return(null); } AssignmentSchedule ob = this[GetKey(keypair)]; return((AssignmentSchedule)ob); }
public AssignmentSchedule GetObjectByKey(long k_AssignSkedID) { if (this.Contains(GetKey(k_AssignSkedID)) == false) { return(null); } AssignmentSchedule ob = this[GetKey(k_AssignSkedID)]; return((AssignmentSchedule)ob); }
public bool ChangeItem(KeyValuePair <string, long> keypair, AssignmentSchedule item) { AssignmentSchedule orig = this.GetObjectByKey(keypair); if (orig != null) { int index = this.IndexOf(orig); this.SetItem(index, item); return(true); } return(false); }
public AssignmentSchedule GetObjectByKey(long k_AssignSkedID, LV.Core.DAL.Base.IRepository repository) { if (this.Contains(GetKey(k_AssignSkedID)) == false) { AssignmentSchedule ob = repository.GetQuery <AssignmentSchedule>().FirstOrDefault(o => o.AssignSkedID == k_AssignSkedID); if (ob != null) { this.Add(ob); } return(ob); } AssignmentSchedule obj = this[GetKey(k_AssignSkedID)]; return((AssignmentSchedule)obj); }
protected override KeyValuePair <string, long> GetKeyForItem(AssignmentSchedule item) { return(item.Key); }
public bool DeleteObject(AssignmentSchedule item, LV.Core.DAL.Base.IRepository repository) { repository.Update(item); return(true); }
public bool AddObject(AssignmentSchedule item, LV.Core.DAL.Base.IRepository repository) { repository.Add(item); return(true); }