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