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