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