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