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