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