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