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