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