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