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