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