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