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