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