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